Re: [Puppet Users] Re: copying files to the agent that matched hostname

2011-08-16 Thread Martin Alfke
Hi San, On 08/16/2011 08:46 PM, Sans wrote: > Thanks John! Is $hostname a puppet built-in variable like > $operatingsystem, $fqdn etc? These varaibles are made available to puppet by facter. You can run facter on command line to see facter output. Regards, Martin > > -San > > On Aug 16, 3:38

[Puppet Users] Re: copying files to the agent that matched hostname

2011-08-16 Thread Sans
Thanks John! Is $hostname a puppet built-in variable like $operatingsystem, $fqdn etc? -San On Aug 16, 3:38 pm, jcbollinger wrote: > > You can interpolate the 'hostname' fact into the name of the resouce, > the name of the file on the file server, or both.  For example: > > file { "${hostname}-c

[Puppet Users] Re: copying files to the agent that matched hostname

2011-08-16 Thread jcbollinger
On Aug 16, 2:59 am, Sans wrote: > Dear all, > > I need to copy some files to the various clients in some logical way. > The files are named in this way: "farm001-cert.pem", where the forst > part of the name (i.e. nfarm001) is the name of host where it should > be copied. How can I do that? Any