superset-service-init
Description
Execute init tasks after a fresh superset installation.
Variables
Name | Type | Default | Description |
---|---|---|---|
|
string | -- | The email address of the admin user. Required |
|
string | -- | The first name of the admin user. Required |
|
string | -- | The last name of the admin user. Required |
|
string | -- | The db password. Required |
|
string | admin | The username of the admin user. |
|
string | superset | The superset user. |
|
string | /var/lib/pyenv/versions/3.6.5/envs/superset | The path to the virtualenv where Superset is installed. |
Code
doc: short_help: Execute init tasks after a fresh superset installation. args: admin_username: doc: short_help: The username of the admin user. type: string required: false default: admin admin_firstname: doc: short_help: The first name of the admin user. type: string required: true admin_lastname: doc: short_help: The last name of the admin user. type: string required: true admin_email: doc: short_help: The email address of the admin user. type: string required: true admin_password: doc: short_help: The db password. type: string required: true superset_virtualenv: doc: short_help: The path to the virtualenv where Superset is installed. type: string default: /var/lib/pyenv/versions/3.6.5/envs/superset superset_user: doc: short_help: The superset user. type: string default: superset frecklets: - python-virtualenv-execute-shell: command: superset db upgrade virtualenv_path: '{{:: superset_virtualenv ::}}' user: '{{:: superset_user ::}}' environment: PYTHONPATH: /etc/superset - python-virtualenv-execute-shell: command: superset init virtualenv_path: '{{:: superset_virtualenv ::}}' user: '{{:: superset_user ::}}' environment: PYTHONPATH: /etc/superset - python-virtualenv-execute-shell: command: 'fabmanager create-admin --app superset --username {{:: admin_username ::}} --firstname {{:: admin_firstname ::}} --lastname {{:: admin_lastname ::}} --email {{:: admin_email ::}} --password {{:: admin_password ::}}' virtualenv_path: '{{:: superset_virtualenv ::}}' user: '{{:: superset_user ::}}' environment: PYTHONPATH: /etc/superset
frecklecute --community superset-service-init --help Usage: frecklecute superset-service-init [OPTIONS] Execute init tasks after a fresh superset installation. Options: --admin-email ADMIN_EMAIL The email address of the admin user. [required] --admin-firstname ADMIN_FIRSTNAME The first name of the admin user. [required] --admin-lastname ADMIN_LASTNAME The last name of the admin user. [required] --admin-password ADMIN_PASSWORD The db password. [required] --admin-username ADMIN_USERNAME The username of the admin user. --superset-user SUPERSET_USER The superset user. --superset-virtualenv SUPERSET_VIRTUALENV The path to the virtualenv where Superset is installed. --help Show this message and exit.
# -*- coding: utf-8 -*- # # module path: pycklets.superset_service_init.SupersetServiceInit # from dataclasses import dataclass from pyckles import AutoPycklet from typing import * # noqa @dataclass class SupersetServiceInit(AutoPycklet): """Execute init tasks after a fresh superset installation. Args: admin_email: The email address of the admin user. admin_firstname: The first name of the admin user. admin_lastname: The last name of the admin user. admin_password: The db password. admin_username: The username of the admin user. superset_user: The superset user. superset_virtualenv: The path to the virtualenv where Superset is installed. """ FRECKLET_ID = "superset-service-init" admin_email: str = None admin_firstname: str = None admin_lastname: str = None admin_password: str = None admin_username: str = None superset_user: str = None superset_virtualenv: str = None def __post_init__(self): super(SupersetServiceInit, self).__init__(var_names=["admin_email", "admin_firstname", "admin_lastname", "admin_password", "admin_username", "superset_user", "superset_virtualenv"]) frecklet_class = SupersetServiceInit
# -*- coding: utf-8 -*- # # module path: pycklets.superset_service_init.SupersetServiceInit # from pyckles import AutoPycklet class SupersetServiceInit(AutoPycklet): """Execute init tasks after a fresh superset installation. Args: admin_email: The email address of the admin user. admin_firstname: The first name of the admin user. admin_lastname: The last name of the admin user. admin_password: The db password. admin_username: The username of the admin user. superset_user: The superset user. superset_virtualenv: The path to the virtualenv where Superset is installed. """ FRECKLET_ID = "superset-service-init" def __init__(self, admin_email=None, admin_firstname=None, admin_lastname=None, admin_password=None, admin_username="admin", superset_user="superset", superset_virtualenv="/var/lib/pyenv/versions/3.6.5/envs/superset"): super(SupersetServiceInit, self).__init__(var_names=["admin_email", "admin_firstname", "admin_lastname", "admin_password", "admin_username", "superset_user", "superset_virtualenv"]) self._admin_email = admin_email self._admin_firstname = admin_firstname self._admin_lastname = admin_lastname self._admin_password = admin_password self._admin_username = admin_username self._superset_user = superset_user self._superset_virtualenv = superset_virtualenv @property def admin_email(self): return self._admin_email @admin_email.setter def admin_email(self, admin_email): self._admin_email = admin_email @property def admin_firstname(self): return self._admin_firstname @admin_firstname.setter def admin_firstname(self, admin_firstname): self._admin_firstname = admin_firstname @property def admin_lastname(self): return self._admin_lastname @admin_lastname.setter def admin_lastname(self, admin_lastname): self._admin_lastname = admin_lastname @property def admin_password(self): return self._admin_password @admin_password.setter def admin_password(self, admin_password): self._admin_password = admin_password @property def admin_username(self): return self._admin_username @admin_username.setter def admin_username(self, admin_username): self._admin_username = admin_username @property def superset_user(self): return self._superset_user @superset_user.setter def superset_user(self, superset_user): self._superset_user = superset_user @property def superset_virtualenv(self): return self._superset_virtualenv @superset_virtualenv.setter def superset_virtualenv(self, superset_virtualenv): self._superset_virtualenv = superset_virtualenv frecklet_class = SupersetServiceInit