logo       

Re: Boolean expressions: msg#00298

sysutils.puppet.user

Subject: Re: Boolean expressions

>>>>> "Matt" == McLeod, Matt <Matt.McLeod@xxxxxxx> writes:

Matt> The big hitch now is that FreeBSD, of course, doesn't do the
Matt> "root" group. It wants "wheel". So I figure what I want to
Matt> do is take a look at $group and $operatingsystem, and if
Matt> need be translate "root" to "wheel". I really don't want to
Matt> be specifying the group on every file.

I think (me newbie) you want the following ,
http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial#selectors
:-

group => $os ? {
freebsd => "wheel",
default => "root",
}

Sincerely,

Adrian Phillips

--
Who really wrote the works of William Shakespeare ?
http://www.pbs.org/wgbh/pages/frontline/shakespeare/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise