On Apr 4, 2010, at 3:14 AM, Peter Meier wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
>>        augeas{"samba-global2":
>>                context => "/files/etc/samba/smb.conf/
>> target[.='global']",
>>                changes => [
>>                        "set workgroup MSHOME",
>>                        "set 'os\ level' 31",
>>                ],
>>        }
>> }
>> 
>> This works in 0.24.8 and fails in 0.25.4.  Anyone know what change I
>> should make to get it working, or should I file a bug?
> 
> can you try without escaping the whitespace:
> 
>>                        "set 'os\ level' 31",
> vs.
>>                        "set 'os level' 31",
> 
> As augeas got some improvements in 0.25 and might finally work as
> expected, as in my opinion as you are setting single quotes the escaping
> shouldn't be required.
> And if it still fails, can you test it with 0.25.5rc1? This one got
> further improvements. You can also try to apply that recipe manually
> with the puppet-binary, so you don't have to upgrade your whole chain to
> an rc.
> 
> cheers pete


First, since it seems like exact version matters more than I thought, I'm using 
0.25.4-2ubuntu4.

Here are the relevant lines from the client's log with the backslash removed.  
It's not working because puppet is trying to set "os"="level" instead of "os 
level"="31"

debug: Augeas[samba-global2](provider=augeas): sending command 'set' with 
params ["/files/etc/samba/smb.conf/target[.='global']/workgroup", "MSHOME"]
debug: Augeas[samba-global2](provider=augeas): sending command 'set' with 
params ["/files/etc/samba/smb.conf/target[.='global']/'os", "level'"]

debug: Augeas[samba-global2](provider=augeas): sending command 'set' with 
params ["/files/etc/samba/smb.conf/target[.='global']/workgroup", "MSHOME"]
debug: Augeas[samba-global2](provider=augeas): sending command 'set' with 
params ["/files/etc/samba/smb.conf/target[.='global']/'os", "level'"]


Full output at http://pastie.org/902773

I'll try 0.25.5 later today.

-- 
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.

Reply via email to