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 pm, jcbollinger <[email protected]> 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}-cert.pem": >> ... >> source => "puppet://puppet.internalnet/modules/certs/${hostname}- >> cert.pem" >> >> } >> >> John > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
