From 6c40b1586ab1269e124f0f71d094834137819375 Mon Sep 17 00:00:00 2001 From: Juan Antonio Osorio Robles Date: Wed, 11 Apr 2018 10:36:55 +0000 Subject: [PATCH] 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 --- docker/services/pacemaker/database/mysql.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docker/services/pacemaker/database/mysql.yaml b/docker/services/pacemaker/database/mysql.yaml index 6a0b6d89d5..40f799febd 100644 --- a/docker/services/pacemaker/database/mysql.yaml +++ b/docker/services/pacemaker/database/mysql.yaml @@ -55,6 +55,12 @@ parameters: default: false description: Whether to run config management (e.g. Puppet) in debug mode. 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: @@ -262,6 +268,13 @@ outputs: - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro - /dev/shm:/dev/shm: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: - name: create persistent directories file: