-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thomas Underhill wrote:> [1] The ldapnodes page seems to be a bit out of date with newer versions of puppet config files, etc. Can I make the necessary updates based on my experience or do I need to run my proposed changes past someone first?Make the updates. I''ve been meaning to do so myself but have lacked the time. Regards James Turnbull - -- James Turnbull <james@lovedthanlost.net> - --- Author of Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) Hardening Linux (http://www.amazon.com/gp/product/1590594444/) - --- PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHTzN29hTGvAxC30ARArtgAJ99Q/3pX0MDaEBdYRaN35wszOAfSQCfR5rh 12zhenWkYFvZh1BYekUknYM=vsvu -----END PGP SIGNATURE-----
I was finally able to get ldapnodes [1] working on our puppetmaster so i''m able to start working on the fun stuff. In the last few days it has become critical that we come up with a better way to manage the configuration of our Solaris zones. I am planning to write a recipe that provisions the zone [using the zone resource type], but would like to avoid having to keep a stockpile of varying site.xml (used to specify which services should be enabled/disabled) files laying around for various needs. I would rather take a single default site.xml file with a standardized template for all systems and then use a puppet manifest to overlay configuration directives based on the class definitions associated with the nodes in our LDAP directory. To put it another way: If I setup a default site.xml that puppet serves out via the fileserver... And then on all nodes defined as being in the "gui" class, I would want Puppet to add these lines to site.xml on the individual nodes [2]: <service name=''application/graphical-login/cde-login'' version=''1'' type=''service''> <instance name=''default'' enabled=''true'' /> </service> <service name=''application/cde-printinfo'' version=''1'' type=''service''> <instance name=''default'' enabled=''true'' /> </service> Can puppet handle doing this (and if so any pointers as to how) or am I better off defining a bunch of different site.xml files? Or is their another method for doing this that would avoid touching a site.xml file entirely? Thanks, Thomas [1] The ldapnodes page seems to be a bit out of date with newer versions of puppet config files, etc. Can I make the necessary updates based on my experience or do I need to run my proposed changes past someone first? [2] Purely a hypothetical example.
Thomas Underhill schrieb:> If I setup a default site.xml that puppet serves out via the > fileserver... > > > And then on all nodes defined as being in the "gui" class, I would > want Puppet to add these lines to site.xml on the individual nodes > [2]: > > <service name=''application/graphical-login/cde-login'' version=''1'' > type=''service''> <instance name=''default'' enabled=''true'' /> </service> > <service name=''application/cde-printinfo'' version=''1'' > type=''service''> <instance name=''default'' enabled=''true'' /> </service> > > > Can puppet handle doing this (and if so any pointers as to how) or am > I better off defining a bunch of different site.xml files? Or is > their another method for doing this that would avoid touching a > site.xml file entirely?You want to read http://reductivelabs.com/trac/puppet/wiki/PuppetTemplating> Thanks, Thomas > > > [1] The ldapnodes page seems to be a bit out of date with newer > versions of puppet config files, etc. Can I make the necessary > updates based on my experience or do I need to run my proposed > changes past someone first?As James said. It''s a open wiki, and you''re probably the most qualified one to do so anyways at the moment :) Regards, DavidS
> >You want to readhttp://reductivelabs.com/trac/puppet/wiki/PuppetTemplating>Thanks this is exactly what I was hoping to find...I don''t know how I missed it on the wiki. -Thomas
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 04 December 2007, Thomas Underhill wrote:> >You want to read > > http://reductivelabs.com/trac/puppet/wiki/PuppetTemplating > > > Thanks this is exactly what I was hoping to find...I don''t > know how I missed it on the wiki.Such a statement is usually a sign that the wiki has to be improved. Where did you look for it? What search terms did you use? Regards, DavidS - -- The primary freedom of open source is not the freedom from cost, but the free- dom to shape software to do what you want. This freedom is /never/ exercised without cost, but is available /at all/ only by accepting the very different costs associated with open source, costs not in money, but in time and effort. - -- http://www.schierer.org/~luke/log/20070710-1129/on-forks-and-forking -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHVbOc/Pp1N6Uzh0URAuPtAJ0dZ8fS5bJCxJveYoexCqISG8A+HQCfeWf3 3dph2kc2wytL+FDCBfplZyk=HBB7 -----END PGP SIGNATURE-----
David - ...''tis hard to remember for sure, but I believe I searched for things along the lines of: "zones" "zone management" "zone" "overlay config file" "populate config file" "overlay configs" "generate config file" With everything else that was going on late last week, the term "template" most likely never entered my head even though it is quite obvious and makes perfect sense. In essence, I suspect that the problem was more with stress on my end as opposed to a problem with the wiki. -Thomas _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users