Displaying 1 result from an estimated 1 matches for "config100".
2013 Mar 08
5
hiera / create_resources / define
...n a template.
This is what I have:
foo.conf.erb:
Name "<%= name %>"
WorkingDir "<%= working_dir %>"
... a bunch of static entries
YAML:
configs:
config1:
Name: app1
WorkingDir: /var/app1
config2:
Name: app2
WorkingDir: /var/app2
...
config100:
Name: app100
WorkingDir: /var/app100
manifest:
class app {
create_resources(app::virtualApps, hiera(''configs''))
}
define app::virtualApps() {
file {"/etc/apps/$app.conf":
owner => root,
group => root,
mode =&g...