Hi while writing facts I heavily use confines to avoid that facts get loaded where they shouldn''t. However I didn''t yet find out how I can add a multiple decision to a confine. so normally I have confine :kernel => :linux but what when kernel can be linux or sunos? just add 2 confines? or can I nest them? something like confine :kernel => :linux||:sunos would be nice. thanks and greets Pete --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
confine :operatingsystem => %w{Solaris Linux Fedora RedHat CentOS SuSE
Debian Gentoo}
Cheers,
Ohad
On Fri, Apr 18, 2008 at 8:58 PM, Peter Meier <peter.meier@immerda.ch>
wrote:
>
> Hi
>
> while writing facts I heavily use confines to avoid that facts get
> loaded where they shouldn''t. However I didn''t yet find
out how I can add
> a multiple decision to a confine.
>
> so normally I have
>
> confine :kernel => :linux
>
> but what when kernel can be linux or sunos? just add 2 confines? or can
> I nest them?
>
> something like
> confine :kernel => :linux||:sunos
> would be nice.
>
> thanks and greets Pete
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---
Peter Meier
2008-Apr-18 14:52 UTC
[Puppet Users] Re: facter confine boolean logic decisions
hi> confine :operatingsystem => %w{Solaris Linux Fedora RedHat CentOS SuSE > Debian Gentoo}cool thanks. after seeing that I also found out that: confine :kernel => [ :sunos, :linux ] is also working. greets Pete --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Possibly Parallel Threads
- Could not load confine test 'operatingsystem': cannot load such file -- puppet/provider/confine/operatingsystem
- Developing custom type/providers for multiple OS
- How to override $::operatingsystem fact
- [PATCH] facter: add interfaces, default_gateway facts on Linux
- Factor questions