Puppet Class: superset
- Defined in:
- manifests/init.pp
Summary
Overview
Superset main class that has parameters for customising the installation and configuration of Apache Superset
lint:ignore:140chars
lint:ignore:parameter_order
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 |
# File 'manifests/init.pp', line 137
class superset (
String $install_dir = '/home/superset',
Variant[Enum['present','absent','latest'], String[1]] $version = '2.1.0',
Array[String] $additional_python_lib = [],
Integer $port = 8088,
String $user = 'superset',
Boolean $load_examples = false,
Boolean $manage_python = true,
Boolean $manage_webserver = true,
Boolean $manage_db = true,
Boolean $manage_firewall = false,
String $admin_username = 'admin',
Sensitive[String] $admin_password = Sensitive('password'),
String $admin_firstname = 'admin',
String $admin_lastname = 'admin',
String $admin_email = 'admin@mycompany.com',
String $gunicorn_install_dir = '/home/superset',
Enum['sync','eventlet','gevent','tornado'] $gunicorn_worker_class = 'gevent',
Integer $gunicorn_workers = 10,
Integer $gunicorn_timeout = 120,
String $gunicorn_bind = '0.0.0.0:8088',
Integer $gunicorn_limit_request_line = 0,
Integer $gunicorn_limit_request_field_size = 0,
String $gunicorn_statsd_host = 'localhost:8125',
Boolean $manage_config = true,
Optional[Integer] $config_row_limit = undef,
Optional[Integer] $config_webserver_port = undef,
Sensitive[String] $config_secret_key = Sensitive('53cR37K3y'),
Optional[String] $config_sqlalchemy_database_uri = undef,
Optional[Boolean] $config_wtf_csrf_enabled = undef,
Optional[Array[String]] $config_wtf_csrf_exempt_list = undef,
Optional[Integer] $config_wtf_csrf_time_limit = undef,
Optional[String] $config_mapbox_api_key = undef,
String $pgsql_database = 'superset',
String $pgsql_user = 'superset',
Sensitive[String] $pgsql_password = Sensitive('password'),
String $pgsql_host = 'localhost',
Integer $pgsql_port = 5432,
String $python_version = 'python39',
Enum['present','absent','latest'] $python_pip = 'present',
Enum['present','absent','latest'] $python_dev = 'present',
Enum['present','absent','latest'] $python_venv = 'absent',
Array[String] $db_drivers = ['psycopg2'],
) {
# lint:endignore
# Install package dependencies
include superset::packages
# Configure Python
include superset::python
# Configure Python Virtual Environment and install Superset
include superset::install
# Configure Superset
include superset::config
# Install Postgresql database
include superset::postgresql
# Initialise Superset Backend Database
include superset::init_db
# Configure and start Gunicorn Service
include superset::service
# Manage the firwall
if $manage_firewall {
include superset::firewalld
}
Class['superset::packages']
-> Class['superset::python']
-> Class['superset::install']
-> Class['superset::config']
-> Class['superset::postgresql']
-> Class['superset::init_db']
-> Class['superset::service']
}
|