Re: [Puppet Users] Mac 10.5 vs 10.6 with 0.25.2

2010-01-12 Thread Roy Nielsen

Sorry, the version of puppet we're running is 0.25.1..

Also, we changed the code to:

52:if ( (($lanl_sav_version !~ /10.2/)   and 
($macosx_productversion_major == "10.4")) or
53:  (($lanl_sav_version != "10.2.3") and 
($macosx_productversion_major == "10.5")) or
54:  (($lanl_sav_version != "10.2.3") and 
($macosx_productversion_major == "10.6")) ) {


and it worked... Is there a problem with regex's in 0.25.1?

Regards,
-Roy

Roy Nielsen wrote:

Hello,

I have an issue - My code works fine on a Mac OS X 10.5.8 box, but not 
10.6.2:


52: if ( (($lanl_sav_version !~ /10.2/)   and 
($macosx_productversion =~ /10.4/)) or
53:  (($lanl_sav_version != "10.2.3") and 
($macosx_productversion =~ /10.5/)) or
54:  (($lanl_sav_version != "10.2.3") and 
($macosx_productversion =~ /10.6/)) ) {


On 10.6, I am getting the following error:

err: Could not retrieve catalog from remote server: Error 400 on 
SERVER: Cannot reassign variable 0 at
/var/puppet/environments/development/modules/lanl-baseline/manifests/classes/sav.pp:52 
on node h09353by20h.lanl.gov


I'm guessing it has something to do with the !~ ?

Anyone have any ideas?

Thanks,
-Roy



-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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.




[Puppet Users] Mac 10.5 vs 10.6 with 0.25.2

2010-01-12 Thread Roy Nielsen

Hello,

I have an issue - My code works fine on a Mac OS X 10.5.8 box, but not 
10.6.2:


52: if ( (($lanl_sav_version !~ /10.2/)   and 
($macosx_productversion =~ /10.4/)) or
53:  (($lanl_sav_version != "10.2.3") and 
($macosx_productversion =~ /10.5/)) or
54:  (($lanl_sav_version != "10.2.3") and 
($macosx_productversion =~ /10.6/)) ) {


On 10.6, I am getting the following error:

err: Could not retrieve catalog from remote server: Error 400 on SERVER: 
Cannot reassign variable 0 at
/var/puppet/environments/development/modules/lanl-baseline/manifests/classes/sav.pp:52 
on node h09353by20h.lanl.gov


I'm guessing it has something to do with the !~ ?

Anyone have any ideas?

Thanks,
-Roy

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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.