diff --git a/cloud/aws/kream_template.json b/cloud/aws/kream_template.json index 1c6751b..e4013a1 100755 --- a/cloud/aws/kream_template.json +++ b/cloud/aws/kream_template.json @@ -510,7 +510,15 @@ "\n", "cd /root/puppet-enterprise-* && ./puppet-enterprise-installer -c /root/pe.conf", "\n", "\n", - "sed -i -e 's/common/global/' /etc/puppetlabs/puppet/hiera.yaml", "\n", + "cat << EOF > /etc/puppetlabs/puppet/hiera.yaml", "\n", + "version: 5", "\n", + "defaults:", "\n", + " datadir: /etc/puppetlabs/code/environments/%{environment}/hieradata", "\n", + " data_hash: yaml_data", "\n", + "hierarchy:", "\n", + "- name: \"Global path\"", "\n", + " path: \"global.yaml\"", "\n", + "EOF", "\n", "\n", "echo '*.kream.demo' > /etc/puppetlabs/puppet/autosign.conf", "\n", "\n",