Hi there,

As I don't like abstract talking, I'll make an example of what I need.

Let's say I have list of servers: A, B, C, D, E.

Now, every server should have a config file (let's give it a name of
"test.conf") in which it's primary and secondary backup is specified.
It should be maintained as a list of backups, like:

Cur Pri Sec
A       B   C
B       A   C
C       B   D
D       A   E
E       D   B

Perfect way would be to make associative table (ATable) and do sth
like:
Pri_back = ATable ($current_server, Pri)
Sec_back = ATable ($current_server, Sec)

and then use Ruby magic to put $Pri_back and $Sec_back into test.conf
file.

All of this, of course, in puppet modules ;-)...

Can somebody point me to an idea how to create sth like this?

/br
Stanislaw
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to