On Jul 28, 2011, at 10:03 PM, Scott Smith wrote: > It looks like you're wanting to do it via erb, but if you can perform > whatever logic in the manifest, you can use tagged: > > (scott@cornstarch:tmp)% cat foo.pp > class foo { } > > class bar { > if (tagged("foo")) { > notice("You're including foo") > } > } > > include foo, bar > (scott@cornstarch:tmp)% puppet foo.pp > notice: Scope(Class[Bar]): You're including foo > notice: Finished catalog run in 0.01 seconds > (scott@cornstarch:tmp)% ---- That worked perfectly (in the manifest which is precisely where I wanted it)...
if (tagged("ldap::server_install")) { $ldap_servers = "ldap://127.0.0.1 ldap://ldap.ttinet" } else { ... first run too... Thanks Craig -- 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.