swygue wrote:
> I trying to get puppet to add an entry to /etc/hosts, but I can't get
> it to work. I have a class file host.pp with the following content:
>
> class host {
> host { "${fqdn}":
> ensure => present,
> ip => $ipaddress,
> alias => ["$fqdn", "$hostname"]
> }
> }
>
> Is this the correct usage?
yes, but you have to "include host" somewhere in the node.
Regards, DavidS
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---