diff --git a/hosts-config.yaml b/hosts-config.yaml index 7f4d76b064..8c333882c3 100644 --- a/hosts-config.yaml +++ b/hosts-config.yaml @@ -11,15 +11,16 @@ resources: type: OS::Heat::SoftwareConfig properties: group: script - inputs: - - name: hosts - default: - list_join: - - ' ' - - str_split: - - '\n' - - {get_param: hosts} - config: {get_file: scripts/hosts-config.sh} + config: + str_replace: + params: + WRITE_HOSTS: + list_join: + - ' ' + - str_split: + - '\n' + - {get_param: hosts} + template: {get_file: scripts/hosts-config.sh} outputs: config_id: diff --git a/scripts/hosts-config.sh b/scripts/hosts-config.sh index b3109a0c9b..3e4dc8400a 100755 --- a/scripts/hosts-config.sh +++ b/scripts/hosts-config.sh @@ -31,6 +31,7 @@ write_entries() { } +hosts="WRITE_HOSTS" if [ ! -z "$hosts" ]; then for tmpl in /etc/cloud/templates/hosts.*.tmpl ; do write_entries "$tmpl" "$hosts"