Hi list,

We have a template which generate the /etc/hosts file. It's used on several
nodes and works fine, except on a cluster of 2 servers, named "rebond" and
rebond02".

Here the only part of the template which use variables :

# MANAGED BY PUPPET ! DO NOT EDIT
# Internet host table

<%= ipaddress_eth0 %>    <%= hostname %>.localdomain <%= hostname %>
127.0.0.1       localhost



On the others nodes, we obtain :

# MANAGED BY PUPPET ! DO NOT EDIT
# Internet host table


192.168.1.5    supervision.localdomain supervision
127.0.0.1       localhost


But on rebond and rebond02, we have:

# MANAGED BY PUPPET ! DO NOT EDIT
# Internet host table

<%= ipaddress_eth0%>    <%= hostname %>.localdmain <%= hostname %>
127.0.0.1       localhost


All the nodes have the same puppet configuration and version.

For test, we have add a condition by hostname :

<% if (hostname == 'rebond') then %>
# rebond
<% else %>
# others
<%= ipaddress_eth0 %>    <%= hostname %>.localdomain <%= hostname %>
127.0.0.1       localhost
<% end %>


The comment "#other" is correctly added on the differents node. But it's
also added to the node "rebond". The condition is not matched.
Facter display the correct hostname:

# facter hostname
rebond


Do you have any idea about this problem ?

puppet version : 2.6.2
OS : Debian Squeeze

Regards,
Anthony

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to