Skip to content

Latest commit

 

History

History
436 lines (243 loc) · 11.4 KB

REFERENCE.md

File metadata and controls

436 lines (243 loc) · 11.4 KB

Reference

Table of Contents

Classes

Public Classes

  • superset: Superset main class that has parameters for customising the installation and configuration of Apache Superset lint:ignore:140chars lint:ign

Private Classes

  • superset::config: Manages the superset_config.py configuration file
  • superset::firewalld: Manages firewalld service and opens Superset port
  • superset::init_db: Initialises the superset db with an admin user, default roles and default permissions. Can also optionally load examples lint:ignore:140cha
  • superset::install: Creates the Superset user and configures a Python virtual environment for installing Apache Superset and its dependent Python libraries
  • superset::packages: Manages package dependencies for Superset
  • superset::postgresql: Manages a basic postgresql backend for superset
  • superset::python: Installs and configures the Python
  • superset::service: Configures and manages Superset service (using Gunicorn)

Tasks

Classes

superset

Superset main class that has parameters for customising the installation and configuration of Apache Superset

lint:ignore:140chars

lint:ignore:parameter_order

Examples

include superset

Parameters

The following parameters are available in the superset class:

install_dir

Data type: String

The directory that a Python Virtual Environment will be created under and where Superset will be installed

Default value: '/home/superset'

version

Data type: Variant[Enum['present','absent','latest'], String[1]]

The version of Apache Superset to install.

Default value: '2.1.0'

additional_python_lib

Data type: Array[String]

Array of additional python libraries to install.

Default value: []

port

Data type: Integer

The port that that superset will be served from. Default: 8088

Default value: 8088

user

Data type: String

The owner of any file/folders created for the Superset installation

Default value: 'superset'

load_examples

Data type: Boolean

Option for loading example charts and data. Default: false

Default value: false

manage_python

Data type: Boolean

Option for managing the installation of python. Default: true

Default value: true

manage_webserver

Data type: Boolean

Option for managing a gunicorn webserver. Default: true

Default value: true

manage_db

Data type: Boolean

Option for managing a Postgresql db back-end. Default: true

Default value: true

manage_firewall

Data type: Boolean

Option for managing firewall (RHEL8 firwalld). Default: false

Default value: false

admin_username

Data type: String

Parameter for setting the admin user username

Default value: 'admin'

admin_password

Data type: Sensitive[String]

Sensitive parameter for setting the admin user password

Default value: Sensitive('password')

admin_firstname

Data type: String

Parameter for setting the admin user first name

Default value: 'admin'

admin_lastname

Data type: String

Parameter for setting the admin user last name

Default value: 'admin'

admin_email

Data type: String

Parameter for setting the admin user email address

Default value: 'admin@mycompany.com'

gunicorn_install_dir

Data type: String

Overide for gunicorn install_dir option.

Default value: '/home/superset'

gunicorn_workers

Data type: Integer

Overide for gunicorn workers option.

Default value: 10

gunicorn_worker_class

Data type: Enum['sync','eventlet','gevent','tornado']

Overide for gunicorn worker_class option.

Default value: 'gevent'

gunicorn_timeout

Data type: Integer

Overide for gunicorn timeout option.

Default value: 120

gunicorn_bind

Data type: String

Overide for gunicorn bind option.

Default value: '0.0.0.0:8088'

gunicorn_limit_request_line

Data type: Integer

Overide for gunicorn limit_request_line option.

Default value: 0

gunicorn_limit_request_field_size

Data type: Integer

Overide for gunicorn limit_request_field_size option.

Default value: 0

gunicorn_statsd_host

Data type: String

Overide for gunicorn statsd_host option.

Default value: 'localhost:8125'

manage_config

Data type: Boolean

Boolean for setting whether to manage the config file superset_config.py

Default value: true

config_row_limit

Data type: Optional[Integer]

Optional setting for setting ROW_LIMIT in superset_config.py

Default value: undef

config_webserver_port

Data type: Optional[Integer]

Optional setting for setting SUPERSET_WEBSERVER_PORT in superset_config.py

Default value: undef

config_secret_key

Data type: Sensitive[String]

Sensitive parameter for setting SECRET_KEY in superset_config.py

Default value: Sensitive('53cR37K3y')

config_sqlalchemy_database_uri

Data type: Optional[String]

Optional setting for setting SQLALCHEMY_DATABASE_URI in superset_config.py

Default value: undef

config_wtf_csrf_enabled

Data type: Optional[Boolean]

Optional setting for setting WTF_CSRF_ENABLED in superset_config.py

Default value: undef

config_wtf_csrf_exempt_list

Data type: Optional[Array[String]]

Optional setting for setting WTF_CSRF_EXEMPT_LIST in superset_config.py

Default value: undef

config_wtf_csrf_time_limit

Data type: Optional[Integer]

Optional setting for setting WTF_CSRF_TIME_LIMIT in superset_config.py

Default value: undef

config_mapbox_api_key

Data type: Optional[String]

Optional setting for setting MAPBOX_API_KEY in superset_config.py

Default value: undef

pgsql_database

Data type: String

Overide option for overiding the default postgresql database

Default value: 'superset'

pgsql_user

Data type: String

Overide option for overiding the default postgresql user

Default value: 'superset'

pgsql_password

Data type: Sensitive[String]

Overide option for overiding the default postgresql password

Default value: Sensitive('password')

pgsql_host

Data type: String

Overide option for overiding the default postgresql host

Default value: 'localhost'

pgsql_port

Data type: Integer

Overide option for overiding the default postgresql port

Default value: 5432

python_version

Data type: String

Overide option for setting the Python version if it will be managed by this module

Default value: 'python39'

python_pip

Data type: Enum['present','absent','latest']

Parameter for setting whether the ensure python-pip is present, absent or latest

Default value: 'present'

python_dev

Data type: Enum['present','absent','latest']

Parameter for setting whether the ensure python-dev is present, absent or latest

Default value: 'present'

python_venv

Data type: Enum['present','absent','latest']

Parameter for setting whether the ensure python-venv is present, absent or latest

Default value: 'absent'

db_drivers

Data type: Array[String]

Overide option for setting database drivers (python database driver packages) to be installed

Default value: ['psycopg2']

Tasks

delete_superset_venv

A task for deleting the Apache Superset virtual environment directory

Supports noop? false