On 2009-Apr-7, at 2:55 PM, Jim Crossley wrote:
> 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.
There is probably a better way, but…
I think you could accomplish this using variable substitution in the
file's "content". So, you might have something like:
$foo = "# foo stuff
# more stuff"
$bar = "# bar stuff"
$baz = "# baz stuff"
file { "app.properties":
content => "$foo
$bar
$baz
",
}
And then you could have some logic that sets $foo, $bar, and $baz to
the right values prior to defining the file resource. (Mind your
indentation and newlines when using "content".)
--
Rob McBroom
<http://www.skurfer.com/>
Because it screws up the order in which people normally read text.
Original message:
> Why is it bad to top-post your reply?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---