Merge "Include the DB password in a Mistral environment for creating backups and restores"
This commit is contained in:
commit
a23598c413
extraconfig/post_deploy
@ -112,12 +112,14 @@ def _create_logging_cron(mistral):
|
|||||||
print('INFO: Undercloud post - Cron triggers configured successfully.')
|
print('INFO: Undercloud post - Cron triggers configured successfully.')
|
||||||
|
|
||||||
|
|
||||||
def _store_snmp_password_in_mistral_env(mistral):
|
def _store_passwords_in_mistral_env(mistral):
|
||||||
""" Store the SNMP password in a mistral environment """
|
""" Store required passwords in a mistral environment """
|
||||||
env_name = 'tripleo.undercloud-config'
|
env_name = 'tripleo.undercloud-config'
|
||||||
config_data = {
|
config_data = {
|
||||||
'undercloud_ceilometer_snmpd_password':
|
'undercloud_ceilometer_snmpd_password':
|
||||||
CONF['snmp_readonly_user_password']
|
CONF['snmp_readonly_user_password'],
|
||||||
|
'undercloud_db_password':
|
||||||
|
CONF['undercloud_db_password']
|
||||||
}
|
}
|
||||||
try:
|
try:
|
||||||
mistral.environments.get(env_name).variables
|
mistral.environments.get(env_name).variables
|
||||||
@ -179,7 +181,7 @@ try:
|
|||||||
session=sdk.session)
|
session=sdk.session)
|
||||||
_configure_wrokbooks_and_workflows(mistral)
|
_configure_wrokbooks_and_workflows(mistral)
|
||||||
_create_logging_cron(mistral)
|
_create_logging_cron(mistral)
|
||||||
_store_snmp_password_in_mistral_env(mistral)
|
_store_passwords_in_mistral_env(mistral)
|
||||||
_create_default_plan(mistral)
|
_create_default_plan(mistral)
|
||||||
if tripleo_validations_enabled:
|
if tripleo_validations_enabled:
|
||||||
_prepare_ssh_environment(mistral)
|
_prepare_ssh_environment(mistral)
|
||||||
|
@ -37,6 +37,10 @@ parameters:
|
|||||||
description: The user password for SNMPd with readonly rights running on all Overcloud nodes
|
description: The user password for SNMPd with readonly rights running on all Overcloud nodes
|
||||||
type: string
|
type: string
|
||||||
hidden: true
|
hidden: true
|
||||||
|
MysqlRootPassword:
|
||||||
|
type: string
|
||||||
|
hidden: true
|
||||||
|
default: ''
|
||||||
DnsServers:
|
DnsServers:
|
||||||
default: []
|
default: []
|
||||||
description: >
|
description: >
|
||||||
@ -212,6 +216,7 @@ resources:
|
|||||||
cloud_name: {get_param: UndercloudCloudName}
|
cloud_name: {get_param: UndercloudCloudName}
|
||||||
home_dir: {get_param: UndercloudHomeDir}
|
home_dir: {get_param: UndercloudHomeDir}
|
||||||
snmp_readonly_user_password: {get_param: SnmpdReadonlyUserPassword}
|
snmp_readonly_user_password: {get_param: SnmpdReadonlyUserPassword}
|
||||||
|
undercloud_db_password: {get_param: MysqlRootPassword}
|
||||||
|
|
||||||
|
|
||||||
UndercloudCtlplaneNetworkConfig:
|
UndercloudCtlplaneNetworkConfig:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user