Always run mysql init bundle

This init container runs docker-puppet manually and is responsible of
provisioning the mysql users and passwords. This currently doesn't get
ran every time since the configuration stays the same, even if the users
or passwords change (which are gotten from hieradata). Allowing this to
run every time will allow us to change database passwords

Closes-Bug: #1762991
Change-Id: I1f07272499b419079466cf9f395fb04a082099bd
This commit is contained in:
Juan Antonio Osorio Robles 2018-04-11 10:36:55 +00:00
parent e9418e171c
commit 6c40b1586a
1 changed files with 13 additions and 0 deletions

View File

@ -55,6 +55,12 @@ parameters:
default: false default: false
description: Whether to run config management (e.g. Puppet) in debug mode. description: Whether to run config management (e.g. Puppet) in debug mode.
type: boolean type: boolean
DeployIdentifier:
default: ''
type: string
description: >
Setting this to a unique value will re-run any deployment tasks which
perform configuration on a Heat stack-update.
resources: resources:
@ -262,6 +268,13 @@ outputs:
- - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro
- /dev/shm:/dev/shm:rw - /dev/shm:/dev/shm:rw
- /var/lib/mysql:/var/lib/mysql:rw - /var/lib/mysql:/var/lib/mysql:rw
environment:
# NOTE: this should force this container to re-run on each
# update (scale-out, etc.)
- list_join:
- ''
- - 'TRIPLEO_DEPLOY_IDENTIFIER='
- {get_param: DeployIdentifier}
host_prep_tasks: host_prep_tasks:
- name: create persistent directories - name: create persistent directories
file: file: