tripleo-common/scripts
Michele Baldessari 57dea6a3c7 Lowercase any hostname comparisons in bootstrap_* scripts
If you deploy a stack with mixed-case hostnames things will break
because no task that is supposed to run on boostrap nodes will run
due to the following code:
HOSTNAME=$(/bin/hostname -s)
SERVICE_NODEID=$(/bin/hiera -c /etc/puppet/hiera.yaml
"${SERVICE_NAME}_short_bootstrap_node_name")
if [[ "$HOSTNAME" == "$SERVICE_NODEID" ]]; then
...

The hiera key might contain mixed-case letters whereas the hostname
won't and the end result is going to be that no bootstrap tasks
will run on any nodes and, amongst other things, no database tables
will be created, making all services unusable.

Since we use bash explicitely we can leverage the ${var,,} expression
for this.

Change-Id: Ie240b8a4217827dd8ade82479a828817d63143ba
Related-Bug: #1773219
(cherry picked from commit 3345557d7b)
2018-05-29 08:39:16 +02:00
..
bootstrap_host_exec Lowercase any hostname comparisons in bootstrap_* scripts 2018-05-29 08:39:16 +02:00
bootstrap_host_only_eval Lowercase any hostname comparisons in bootstrap_* scripts 2018-05-29 08:39:16 +02:00
bootstrap_host_only_exec Lowercase any hostname comparisons in bootstrap_* scripts 2018-05-29 08:39:16 +02:00
container-update.py Script to update RPM's in containers. 2018-05-13 20:40:57 +00:00
create_freeipa_enroll_envfile.py Add FreeIPA enrollment environment generator 2016-12-13 14:36:53 +00:00
pull-puppet-modules A script that pulls the latest puppet source 2017-01-09 21:03:13 -05:00
README-tripleo.sh Remove tripleo.sh (now in tripleo-ci repo) 2016-03-15 08:01:22 -04:00
run-validation Configure run-validation to use the custom output 2016-09-29 12:21:40 +02:00
tripleo-build-images Fix build-image script output 2016-12-06 16:22:01 +01:00
tripleo-config-download Config download support for all deployments 2017-10-17 13:59:53 -04:00
upgrade-non-controller.sh upgrade-non-controller.sh script does not support alternative plan names 2018-02-20 10:04:09 +00:00
upload-puppet-modules Change default deploy artifacts container name 2016-09-05 21:02:27 +01:00
upload-swift-artifacts Update the documentation link for doc migration 2017-07-25 15:00:27 +08:00