Thanks for the assistance. I checked out Hiera and to be honest, that
is really way out of my league right now. When I get there, I will
definitely be looking into it, because I know I will get there soon.
=)
I have been reading the style guide and the best practices pages and
came up with this model:
Since I have to manage 40 files, I just created a subclass called
config:show1_prod_LA. In the show1_prod_LA.pp file, I created all my
specific key=value pairs, and then I included config.
in the config init.pp i have:
file { "/tmp/${showname}_${env}_${site}.properites":
ensure => present,
content => template("wls_install_properties/
template.properties.erb"),
So basically I am reusing the same class config but having each
subclass over write the values. This worked for the first subclass. I
tried creating a second subclass, called config:show1_prod_NY. This
subclass has the same keys, but obviously different values.
In my site.pp I have this:
node mydesktop{
include config::show1_prod_LA:
include config::show1_prod_NY
}
My problem is, only the first include runs.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.