On 12/03/2010 09:48 PM, Don Jackson wrote: > > So here is a scenario: > > I have a directory: > > ./foo > ./foo/file1 > ./foo/file2 > ./foo/file3 > … > ./foo/fileN > > I populate this directory on a configured machine via a recursive file > resource. > > What I would like to do is create a symlink from the parent directory to each > filen in the foo subdirectory? > > Is there some easy way to get puppet to do that? > > Basically I would like to iterate thru > > ln -s ./foo/filen ./filen > > Short of writing a shell script, downloading it, and Exec'ing it?
You should be able to come up with a shell one liner and exec that directly. That's what I'd do, if I was desperate to not include the filenames in the manifest at all. Now, if I was free to have an array of filenames in the manifest, I could do something more elegant using a define... HTH, Felix -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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.