Rene wrote:
> I think this could be nice to do. For clusters (where every node
> should have the same entries) it would ease the handling.
>
> If so, how do you manage it? Static file, template, augeas, other?
On the Beowulf clusters where we run Puppet, we use a template. Since
we want over 150 entries in it, many with very similar names, it seemed
like the easiest way. I'm attaching that template.
On my personal workstations and laptops, I use the builtin 'host' type
of Puppet, since there I only want to add a single entry.
On yet other systems, I will probably not touch /etc/hosts at all.
/Bellman
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
<%
# Shorter names to use below
intnet = cluster_internal_net
ipminet = cluster_ipmi_net
-%>
127.0.0.1 localhost
::1 localhost6
<%= intnet %>.1 armstrong s1 armstrong.<%= cluster_domain %>
<%= intnet %>.2 goodman s2 goodman.<%= cluster_domain %>
<%= intnet %>.3 miller s3 miller.<%= cluster_domain %>
<%= intnet %>.4 ellington d1 ellington.<%= cluster_domain %>
<%= intnet %>.5 basie d2 basie.<%= cluster_domain %>
<%= intnet %>.6 fitzgerald d3 fitzgerald.<%= cluster_domain %>
<%= intnet %>.9 login login.<%= cluster_domain %> <%=
clustername %> <%= cluster_domain %>
<%= intnet %>.10 arc-ce arc-ce.<%= cluster_domain %>
<%= intnet %>.12 alien-ce alien-ce.<%= cluster_domain %>
<%= intnet %>.15 giis giis.<%= cluster_domain %>
# <%= intnet %>.129-200 compute nodes
<% 1.upto(n_computenodes.to_i) do |i| -%>
<%= intnet %>.<%= i+128 %> n<%= i %> n<%= i %>.<%= cluster_domain %>
<% end -%>
<%= ipminet %>.2 s2-ipmi goodman-ipmi
<%= ipminet %>.3 s3-ipmi miller-ipmi
<%= ipminet %>.4 d1-ipmi ellington-ipmi
<%= ipminet %>.5 d2-ipmi basie-ipmi
<%= ipminet %>.6 d3-ipmi fitzgerald-ipmi
<%= ipminet %>.60 d1-raid ellington-raid
<%= ipminet %>.61 d2-raid basie-raid
<%= ipminet %>.62 d3-raid fitzgerald-raid
<%= ipminet %>.63 s1-mgmt armstrong-mgmt
<%= ipminet %>.64 switch0 switch0-ipmi
<%= ipminet %>.65 switch1 switch1-ipmi
<%= ipminet %>.66 switch2 switch2-ipmi
# <%= ipminet %>.129-200 compute nodes ipmi
<% 1.upto(n_computenodes.to_i) do |i| -%>
<%= ipminet %>.<%= i+128 %> n<%= i %>-ipmi
<% end -%>