Dear All,
I am trying to use augeas to change the value of NM_CONTROLLED to "no"
on
all my RHEL 6.X machines. However, the number of ethernet cards differ on
each server, thus I want to use expression or wild cards.
if $::operatingsystemmajrelease == '6' {
augeas { "network-tweaks-RedHat":
context =>
"/files/etc/sysconfig/network-scripts/ifcfg-eth[0-9]",
changes => [
'set
/files/etc/sysconfig/network-scripts/ifcfg-eth[0-9]/NM_CONTROLLED
\'"no"\'',
],
}
}
I wrote the above code but it does't do the job. Please suggest.
Regards,
Vikas
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/f7d2a54b-e0fc-4238-8063-9a2d1dcd9521%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.