In the documentation, there is an example such as this: case $operatingsystem { sunos: { include solaris } # apply the solaris class redhat: { include redhat } # apply the redhat class default: { include generic } # apply the generic class } I''ve seen the $operatingsystem variable used elsewhere. What actually puts the value into the $operatingsystem variable? Does puppet do it when starting up or do I have to create that variable myself? If it''s a pre-defined variable, do you guys have a list of other predefined variables which puppet provides to use in it''s various manifests, functions, etc? Thanks! BC ____________________________________________________________________________________ Food fight? Enjoy some healthy debate in the Yahoo! Answers Food & Drink Q&A. http://answers.yahoo.com/dir/?link=list&sid=396545367 _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
Brent Clements wrote:> In the documentation, there is an example such as this: > > case $operatingsystem { > sunos: { include solaris } # apply the solaris class > redhat: { include redhat } # apply the redhat class > default: { include generic } # apply the generic class > } > > I''ve seen the $operatingsystem variable used elsewhere. > > > What actually puts the value into the $operatingsystem variable? > > Does puppet do it when starting up or do I have to create that variable myself? > > If it''s a pre-defined variable, do you guys have a list of other predefined variables which puppet provides to use in it''s various manifests, > functions, etc?man facter Dave -- Please don''t top post and leave the HTML messages on myspace
Run ''facter'' on any of your target hosts - you''ll see what''s available. On debian, also make sure you have the ''lsb-release'' package installed - facter will give you more info then. Brent Clements wrote:> In the documentation, there is an example such as this: > > case $operatingsystem { > sunos: { include solaris } # apply the solaris class > redhat: { include redhat } # apply the redhat class > default: { include generic } # apply the generic class > } > > I''ve seen the $operatingsystem variable used elsewhere. > > > What actually puts the value into the $operatingsystem variable? > > Does puppet do it when starting up or do I have to create that variable myself? > > If it''s a pre-defined variable, do you guys have a list of other predefined variables which puppet provides to use in it''s various manifests, > functions, etc? > > Thanks! > BC > > > > ------------------------------------------------------------------------ > We won''t tell. Get more on shows you hate to love > <http://us.rd.yahoo.com/evt=49980/*http://tv.yahoo.com/collections/265> > (and love to hate): Yahoo! TV''s Guilty Pleasures list. > <http://us.rd.yahoo.com/evt=49980/*http://tv.yahoo.com/collections/265> > ------------------------------------------------------------------------ > > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users >-- Mike Pountney, Information Systems Manager, Semantico, Floor 1, 21-23 Dyke Road, Brighton BN1 3FE <http://www.semantico.com/> <mailto:Mike.Pountney@semantico.com> <tel:+44-1273-358209> <fax:+44-1273-723232>
Awesome Thanks! I''ve always wondered where it came from! I appreciate the pointer. ----- Original Message ---- From: David Campbell <dave@cpfc.org> To: Puppet User Discussion <puppet-users@madstop.com> Sent: Tuesday, July 3, 2007 11:53:07 AM Subject: Re: [Puppet-users] $operatingsystem variable. Brent Clements wrote:> In the documentation, there is an example such as this: > > case $operatingsystem { > sunos: { include solaris } # apply the solaris class > redhat: { include redhat } # apply the redhat class > default: { include generic } # apply the generic class > } > > I''ve seen the $operatingsystem variable used elsewhere. > > > What actually puts the value into the $operatingsystem variable? > > Does puppet do it when starting up or do I have to create that variable myself? > > If it''s a pre-defined variable, do you guys have a list of other predefined variables which puppet provides to use in it''s various manifests, > functions, etc?man facter Dave -- Please don''t top post and leave the HTML messages on myspace _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users ____________________________________________________________________________________ Finding fabulous fares is fun. Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains. http://farechase.yahoo.com/promo-generic-14795097 _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users