Hello all,
We are in the middle of converting our nodes to LDAP. One question that
I am having that I have not been able to find anywhere is how does one
instantiate a define in an LDAP node. That is, suppose that I have the
following class:
class definetest {
define optfile(fname) {
file {
/opt/$fname:
content => $fname;
}
exec {
CopyOptFile:
command => "/bin/cp /opt/$fname /opt/${fname}1";
}
}
}
What would be the LDAP equivalent of the following AST configuration:
node "test" {
definetest::optfile {
"file1":
fname => "foo";
"file2":
fname => "bar";
}
}
(Yes, I know that this example is somewhat contrived, but I hope that it
conveys the idea. ;-)
Many thanks in advance.
John Guthrie
[email protected]
--
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.