Add KOLLA_BOOTSTRAP=True to 2 bootstrap containers

keystone_bootstrap and mysql_sync_credentials are containers which need
to be run on the bootstrap node only, there is no need to run them on
other controllers. It avoids useless verbosity when they fail to
execute.

Change-Id: I4acf992e41f60a5462f8fa35964c051ca15895ba
Closes-Bug: #1840999
This commit is contained in:
Emilien Macchi 2019-08-21 19:55:38 -04:00
parent b3510328ba
commit 24a934de79
2 changed files with 4 additions and 0 deletions

View File

@ -210,6 +210,8 @@ outputs:
user: root
command:
[ 'mysql', '/bin/bash', '-c', 'cp /var/lib/kolla/config_files/src/root/.my.cnf /root' ]
environment:
- KOLLA_BOOTSTRAP=True
container_puppet_tasks:
# MySQL database initialization occurs only on single node
step_2:

View File

@ -747,6 +747,8 @@ outputs:
user: root
command:
[ 'keystone', '/usr/bin/bootstrap_host_exec', 'keystone' ,'keystone-manage', 'bootstrap', '--bootstrap-password', {get_param: AdminPassword} ]
environment:
- KOLLA_BOOTSTRAP=True
keystone_cron:
start_order: 4
image: *keystone_image