lance dillon wrote:
> I need to be able to add:
>
> alias usb-storage off
>
> to /etc/modprobe.conf
>
> I have this so far:
>
> augeas { "usb-storage":
> context => "/files/etc/modprobe.conf",
> changes => [ "set alias[last()+1] usb-storage",
> "set alias[last()]/modulename off",
> ],
> onlyif => "get alias != usb-storage"
> }
try onlyif => "match alias include usb-storage"
it may be
"match alias[*] include usb-storage"
-- bk
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---