Hi,

For clusters, we use a script called allnodes, that let's us easily execute
stuff on (surprise) all cluster nodes.
The script is easily deployed by puppet, but uses a config file, which is
just the list of hostnames. We cannot get this list dynamically from the
cluster (for example via hasys -list), because we might want to run
commands when the cluster is down or incomplete.
However, all cluster nodes belong to the same class, like so:
class veritastest {
  <some stuff here>
}
node 'host1' inherits default {
  include veritastest
  <other stuff>
}
node 'host2' inherits default {
  include veritastest
  <other stuff>
}
Is there a way to generate (in the class definition), with an erb template
a file that shows just
host1
host2
?

And, of course the file should modify itself as new nodes are added to the
cluster.

Thanks.
-- 
Beware of programmers who carry screwdrivers!

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to