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/-/Er6NqmvRq8cJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.