On Fri, 2009-10-09 at 08:55 -0700, Rino wrote:
> Hi,
> 
> We've run into a problem with augeas while trying to update a netwok
> configuration file :
> for instance, we would like to set "ETHTOOL_OPTS" to "autoneg on" but
> the result is
> ETHTOOL_OPTS=autoneg in the file (the " on" part is not written).
> 
> Is there a way to escape the space to get the correct result ?
> (we've tried several things but none has worked so far)

You'll get to use a lot of quotes in your puppet manifest; I _think_
something along the lines of

augeas { foo:
  context => ...,
  changes => "set ETHTOOL_OPTS \"'autoneg on'\""
}

should do the trick. The outer double quotes are stripped by puppet when
it reads the manifest, the inner double quotes are stripped by the
augeas type when it parses the changes, leaving the single quotes in the
value that gets passed to augeas.

David



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to