Re: [Puppet Users] how to use file resource with source file name unknown

2015-07-08 Thread jcbollinger
On Tuesday, July 7, 2015 at 8:54:54 AM UTC-5, Christopher Wood wrote: > > In your place I would probably use a fact to get the names, see inline. > Fair warning that I haven't tested any of this. It may even damage your > server as written! > I read the OP as saying that the list of files was

Re: [Puppet Users] how to use file resource with source file name unknown

2015-07-08 Thread Andreas Dvorak
Hi, thank for the help. I have solved the issue with the generate funktion. $redhatfiles = generate("/bin/bash","-c","/bin/ls /data/git/${zweig}/modules/networking/files/${::hostname}/network-scripts 2>/dev/null | tr -t '\n' ':'") $redhat_interfaces = split($redhatfiles, ":") r

Re: [Puppet Users] how to use file resource with source file name unknown

2015-07-07 Thread Christopher Wood
In your place I would probably use a fact to get the names, see inline. Fair warning that I haven't tested any of this. It may even damage your server as written! On Tue, Jul 07, 2015 at 03:22:44AM -0700, Andreas Dvorak wrote: >Hello, > >I have a module to copy files /etc/hostname.* in

[Puppet Users] how to use file resource with source file name unknown

2015-07-07 Thread Andreas Dvorak
Hello, I have a module to copy files /etc/hostname.* in Solaris. But the interface name can be any. e.g. networking/file/vm6742/hostname.e1000g0 networking/file/vm6742/hostname.e1000g1 I do not want to user file with recurse because the files in /etc have different permissions. Is it possible