Move nova.conf truncation into separate element

This patch refactors the hiera elements 40-truncate-nova-config
os-refresh-config script out into a separate element. I recently
tried deploying without this truncation and it still appears
to be required. As we are moving towards using a different
hiera element we need to include this element separately.

Note: The new hiera agent heat hook is required before we can use
t-h-t in the undercloud so resolving this issue is a prerequisite
for that effort.

Change-Id: I6b2da9fbb6cf418a388d29db5148087b33f79b4f
Partially-Implements: blueprint heat-undercloud
This commit is contained in:
Dan Prince 2016-11-02 07:14:48 -04:00
parent df2715d6a5
commit 6ec9d658e3
5 changed files with 10 additions and 0 deletions

View File

@ -2,3 +2,4 @@ os-apply-config
os-refresh-config
package-installs
puppet
truncate-nova-config

View File

@ -0,0 +1 @@
Truncate config files.

View File

@ -0,0 +1 @@
os-refresh-config

View File

@ -0,0 +1,7 @@
#!/bin/bash
set -eux
set -o pipefail
mkdir -p /usr/libexec/os-refresh-config/configure.d/40-truncate-nova-config
install -m 0755 -o root -g root $(dirname $0)/../40-truncate-nova-config /usr/libexec/os-refresh-config/configure.d/40-truncate-nova-config