Thanks for the response Joseph - that does help that you had the same
situation. That was the only solution I could think of, I was just hoping
there was some other way. I’m going to guess it is something to do with
scoping of how the catalog is compiled, but I don’t know enough about the
pup
On 01/14/2014 05:12 PM, Justin Lambert wrote:
> I’m attempting to create a bunch of symlinks based on an array of filenames
> but I can’t figure out how to use the title of the resource within the
> resource itself.
>
> class app::config {
> file { [ 'a.conf', 'b.conf' ]:
> ensure => 'link
I’m attempting to create a bunch of symlinks based on an array of filenames but
I can’t figure out how to use the title of the resource within the resource
itself.
class app::config {
file { [ 'a.conf', 'b.conf' ]:
ensure => 'link',
path => "/etc/app/${name}",
target => "/usr/app