I''m new to puppet, and I''m hoping to use it to configure our
production apps, each of which is configured from a single Java
properties file.
So we have a lot of redundant properties in these files, and I''d like
to consolidate them using puppet. For example, I''d like to "roll
up"
these properties into separate files based on logical "tiers",
e.g. service, data center, or host.
So, for example, I might have service Foo running on host Bar in data
center Baz. I''m envisioning three properties files:
foo.properties, bar.properties, and baz.properties. But what I need
puppet to push is a single file, app.properties, which is a
concatenation of the three.
I haven''t figured out an elegant way of doing this. I thought I might
be able to set the sourceselect attribute of the file type to
''all''
but that only works with recursive copies. :-(
Another option is to use templates, since multiple ones will be
concatenated together, but this seems kind of goofy since I won''t
actually be replacing any tokens in the templates. Plus, there won''t
always be a properties file for each tier, e.g. there may not be a
bar.properties file if the target host doesn''t need to override any
property set by the service.
So I''m kind of at a loss and hoping for some guidance...
Thanks,
Jim
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---