Awesome David, many thanks for the explanation and the code as well, works
like a charm.
Regards,
Vikas
On Friday, 15 August 2014 06:47:58 UTC+10, David Lutterkort wrote:
>
> Hi Vikas,
>
> On Thu, Aug 14, 2014 at 12:09 AM, Vikas Kumar > wrote:
>
>
>> But, this isn't. I tried few combinations
Hi Vikas,
On Thu, Aug 14, 2014 at 12:09 AM, Vikas Kumar wrote:
> But, this isn't. I tried few combinations of single and double quotes, but
> none of them are working :(
> "setm *[label() =~ glob('ifcfg-eth*')] NM_CONTROLLED \'"no"\'",
>
>
The problem is that the Puppet string is enclosed in do
Hi David,
Many thanks for the information, but still I am having some issues with
puppet class when I am trying to use double quotes.
This is working good
"setm *[label() =~ glob('ifcfg-eth*')] NM_CONTROLLED no",
But, this isn't. I tried few combinations of single and double quotes, but
none o
Hi Vikas,
to set multiple nodes, you need to use the 'setm' command; 'set' will only
change a single node. Also, the path expressions in Augeas are more like
XPath, and therefore don't have globbing built in. In augtool, you'd do
what you want with this command:
setm /files/etc/sysconfig/ne