I have the class below to export host entries.
However I wish to override the entry for my host to 127.0.0.1
So for all of the hosts other than foo.bar.com I would like them to
have the real IP address but for foo.bar.com I would like to just have
the loopback host entry. 2.6.2 doesn't allow multiple tags and if I
put in another entry for localhost there is a collision.
Is there any way to accomplish this in 2.6.2?
=========================================================
class stagehosts {
if $MY_CUSTOM_FACT =~ /BLAH-BLAH/ {
@@host { $fqdn:
target => '/etc/hosts',
ip => $ipaddress,
host_aliases => [$hostname],
tag => stagehosts,
}
Host <<|tag == 'stagehosts'|>>
}
}
--
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.