On Thu, Jul 28, 2011 at 1:48 PM, Craig White <craig.wh...@ttiltd.com> wrote: > Trying to ascertain if a particular client has been assigned the class > ldap::server_install because I want to have a different configuration value > for the ldap::configure files > > This just gives me a syntax error... > > Class["ldap::server_install"].included? ? $is_ldap_server = true : > $is_ldap_server = false > > Is there a way that I can derive whether a class has been assigned to the > client or do I have to write a custom fact?
Presumably, you have already made a decision somewhere in you manifest to include class ldap::server_install, so why not set a variable there? I assume you want the correct config in one run, rather than waiting for ldap to be deployed before a custom fact updates. Thanks, Nan -- 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.