On Thu, Sep 1, 2011 at 4:31 PM, Aaron Grewell <aaron.grew...@gmail.com>wrote:
> You can't. The whole purpose of facts is to allow Puppet to make decisions > based on client data. Variables=server, facts=client. Yep. However, puppet manifests do allow you to access both and make decisions based on their values. class base { if $operatingsystem == "debian" and $server_location == "botswana" { include aptclient::botswana } } > > On Thu, Sep 1, 2011 at 3:41 PM, Douglas Garstang > <doug.garst...@gmail.com>wrote: > >> So, after reading this doc: >> >> http://projects.puppetlabs.com/projects/1/wiki/Adding_Facts >> >> it's not readily apparent to me how I can create facts that are derived >> from variables defined at the node level in puppet, rather than at the O/S >> level on the client. I want to be able to set a variable that defines a >> server type in the node, and access that. Anyone? >> >> Doug. >> >> -- >> 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. >> > > -- > 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. > -- Nigel Kersten Product Manager, Puppet Labs *Join us for **PuppetConf * <http://www.bit.ly/puppetconfsig> Sept 22/23 Portland, Oregon, USA. * * -- 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.