Hi George,
      You can directly use the fact hostname as $hostname in your manifest. 
      So though the hostname changes, puppet will take the updated value of 
$hostname.
      Will you please elaborate about the scenario for new node? Do you 
want to use this hostname for certification signing or in manifest?   

Regards,
Sneha.
NTT DATA GTS. Pune.


On Thursday, July 18, 2013 8:04:10 PM UTC+5:30, George Brown wrote:
>
> Hello,
>
> I am trying to work out how to have one server perform an action when a 
> new host is added.
>
> Specifically it needs to execute a command containing the hostname of the 
> new node in order to accept a license. My questions are as follows
>
> 1) As I hostname is available as a fact is there a easy way to export this 
> rather than having an exec perform /bin/hostname?
>
> 2) When the resource is updated is their a way to show only the updated 
> contents? 
>
> Please let me know if I'm going the wrong way and if there's a better way 
> to do this
>
> Many thanks
> George
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to