[Puppet Users] Re: Use of hash in a conditional assignment doesn't work

2015-03-25 Thread jcbollinger
On Tuesday, March 24, 2015 at 10:22:16 AM UTC-5, Tom Limoncelli wrote: > > I'd like to assign $v one hash if $y == 'foo' and a different hash if > $y == 'bar'. However it seems like conditional assignments aren't > permitted. > > $ puppet --version > 3.7.3 > > $ cat -n hash-condeq.pp >

Re: [Puppet Users] Re: Use of hash in a conditional assignment doesn't work

2015-03-24 Thread Tom Limoncelli
On Tue, Mar 24, 2015 at 1:11 PM, Nick Howes wrote: > On Tuesday, 24 March 2015 15:22:16 UTC, Tom Limoncelli wrote: >> >> I'd like to assign $v one hash if $y == 'foo' and a different hash if >> $y == 'bar'. However it seems like conditional assignments aren't >> permitted. >> >> $ puppet --versio

[Puppet Users] Re: Use of hash in a conditional assignment doesn't work

2015-03-24 Thread Nick Howes
On Tuesday, 24 March 2015 15:22:16 UTC, Tom Limoncelli wrote: > > I'd like to assign $v one hash if $y == 'foo' and a different hash if > $y == 'bar'. However it seems like conditional assignments aren't > permitted. > > $ puppet --version > 3.7.3 > > $ cat -n hash-condeq.pp > 1 $y = 'f