def init_config(): conf = { "MONGODB": [ Argument("mongodb-host", "The IP address or hostname of the MongoDB server", "CONFIG_MONGODB_HOST", util.get_ip(), validators=[validators.ip_or_hostname]) ] } for group in conf: Controller.get().add_group(group, conf[group])
def init_config(): conf = { "MARIADB": [ Argument("mariadb-host", "The IP address or hostname of the MariaDB server", "CONFIG_MARIADB_HOST", util.get_ip(), validators=[validators.ip_or_hostname]), Argument("mariadb-user", "User for mariadb authentication", "CONFIG_MARIADB_USER", "root", validators=[validators.not_empty]), Argument("mariadb-pw", "Password for mariadb user", "CONFIG_MARIADB_PW", utils.generate_random_pw(), validators=[validators.not_empty]) ] } for group in conf: Controller.get().add_group(group, conf[group])
def init_config(): conf = { "AMQP": [ Argument("amqp-auth-user", "User for amqp authentication", "CONFIG_AMQP_AUTH_USER", "amqp_user", validators=[validators.not_empty]), Argument("amqp-auth-pw", "Password for amqp user authentication", "CONFIG_AMQP_AUTH_PASSWORD", utils.generate_random_pw(), validators=[validators.not_empty]), Argument("amqp-host", "The IP address or hostname of the server on which" " to install the AMQP service", "CONFIG_AMQP_HOST", util.get_ip(), validators=[validators.ip_or_hostname]) ] } for group in conf: Controller.get().add_group(group, conf[group])
def init_config(): home = os.getenv('HOME') if home is None: home = "/root" conf = { "GENERAL": [ Argument("debug-mode", "Set to 'y' if you want to run" " OpenStack services in debug mode", "CONFIG_DEBUG_MODE", "n", options=['y', 'n'], validators=[validators.y_or_n]), Argument("ssh-private-key", "Path to the private SSH key file", "CONFIG_PRIVATE_SSH_KEY", "", validators=[validate_ssh_key]), Argument("controller-host", "IP address or hostname of the server on which " " to install OpenStack services specific to" " controller role such as API servers", "CONFIG_CONTROLLER_HOST", util.get_ip(), validators=[validators.ip_or_hostname]), Argument("clean-controller-host", "Set 'y' if you would like Clearstack to " "clean up controller host", "CONFIG_CLEAN_CONTROLLER_HOST", "y", validators=[validators.y_or_n]), Argument("compute-hosts", "List of IP addresses or hostnames of the server on which" " to install the Nova compute service", "CONFIG_COMPUTE_HOSTS", util.get_ip(), validators=[validators.ip_or_hostname]), Argument("clean-compute-hosts", "Set 'y' if you would like Clearstack to " "clean up compute hosts", "CONFIG_CLEAN_COMPUTE_HOSTS", "y", validators=[validators.y_or_n]), Argument("mariadb-install", "Set 'y' if you would like Clearstack to install MariaDB", "CONFIG_MARIADB_INSTALL", "y", options=['y', 'n'], validators=[validators.y_or_n]), Argument("mongodb-install", "Set 'y' if you would like Clearstack to install MongoDB", "CONFIG_MONGODB_INSTALL", "y", options=['y', 'n'], validators=[validators.y_or_n]), Argument("http-service", "Set 'apache2' or 'nginx' as HTTP Service for Horizon, " "Keystone and Nova API web services", "CONFIG_HTTP_SERVICE", "nginx", options=['nginx', 'apache2'], validators=[validators.not_empty]), Argument("glance-install ", "Set 'y' if you would like Clearstack to install" " Openstack image (glance)", "CONFIG_GLANCE_INSTALL", "y", options=['y', 'n'], validators=[validators.y_or_n]), Argument("nova-install ", "Set 'y' if you would like Clearstack to install" " Openstack compute (nova)", "CONFIG_NOVA_INSTALL", "y", options=['y', 'n'], validators=[validators.y_or_n]), Argument("horizon-install", "Set 'y' if you would like Clearstack to install" " OpenStack dashboard (horizon)", "CONFIG_HORIZON_INSTALL", "y", options=['y', 'n'], validators=[validators.y_or_n]), Argument("neutron-install", "Set 'y' if you would like Clearstack to install" " OpenStack Networking (neutron)", "CONFIG_NEUTRON_INSTALL", "y", options=['y', 'n'], validators=[validators.y_or_n]), Argument("ceilometer-install", "Set 'y' if you would like Clearstack to install" " OpenStack Telemetry (ceilometer)", "CONFIG_CEILOMETER_INSTALL", "y", options=['y', 'n'], validators=[validators.y_or_n]), Argument("heat-install", "Set 'y' if you would like Clearstack to install" " OpenStack Orchestration (heat)", "CONFIG_HEAT_INSTALL", "n", options=['y', 'n'], validators=[validators.y_or_n]), Argument("swift-install", "Set 'y' if you would like Clearstack to install" " OpenStack Object Storage (swift)", "CONFIG_SWIFT_INSTALL", "n", options=['y', 'n'], validators=[validators.y_or_n]) ] } for group in conf: Controller.get().add_group(group, conf[group])