Skip to content

Commit

Permalink
puppet/init.pp: add hiera_resources
Browse files Browse the repository at this point in the history
hiera_resources allows to use hiera to declare arbitrary resources as we
already do for classes using hiera-include.

depends on the hiera_include module added in
redhat-openstack/openstack-puppet-modules#267
  • Loading branch information
fcharlier committed Feb 25, 2015
1 parent 92ca4c9 commit f25d76c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ Exec {
path => ['/bin', '/sbin', '/usr/bin', '/usr/sbin'],
}
hiera_include('classes')
hiera_resources('resources')
EOF
cat > /etc/facter/facts.d/environment.txt <<EOF
type=${PROF_BY_HOST[$h]}
Expand All @@ -176,6 +177,7 @@ Exec {
path => ['/bin', '/sbin', '/usr/bin', '/usr/sbin'],
}
hiera_include('classes')
hiera_resources('resources')
EOF
tee /tmp/environment.txt.$h <<EOF
type=${PROF_BY_HOST[$h]}
Expand Down
1 change: 1 addition & 0 deletions download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ Exec {
}
hiera_include('classes')
hiera_resources('resources')
EOF

# Ansible
Expand Down

0 comments on commit f25d76c

Please sign in to comment.