FAQ
Sorry, that should be app_dirs { $apps: }
On Tuesday, January 8, 2013 12:59:49 PM UTC-7, joe wrote:

Create a defined type and call it with the array of app names:

define app_dirs {

file {"/some/where/${title}/foo":
mode => '0644'
}

file {"/some/where/${title}/bar":
mode => '0644',
}
}

app_dirs { apps: }
On Tuesday, January 8, 2013 12:18:49 PM UTC-7, Stefan Wiederoder wrote:

I´ve an application which has always the same directory structure:
/some/where/app1/foo
/some/where/app1/bar
/some/where/app2/foo
/some/where/app2/bar
/some/where/app3/foo
/some/where/app3/bar
and so on.....

I´de like to set owner/group permissions while using a loop with an array:
$path = "/some/where"
# array
apps = [ "app1", "app2", "app3", ]

but - how can I achieve this?

thanks
,
Stefan



--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/hQPNzWuhGDMJ.
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.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 3 | next ›
Discussion Overview
grouppuppet-users @
categoriespuppet
postedJan 8, '13 at 7:18p
activeJan 8, '13 at 8:39p
posts3
users2
websitepuppetlabs.com

2 users in discussion

Joe: 2 posts Stefan Wiederoder: 1 post

People

Translate

site design / logo © 2022 Grokbase