-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
Destroying a ipset object is not working as expected in Ubuntu 14.04.
Error: /Stage[main]/Profiles::Managed_firewall::Ipset/Ipset[ipset_old_servers_32]/Exec[ipset destroy ipset_old_servers_32]: Could not evaluate: Could not find command '/usr/sbin/ipset'
If you specify the path in the exec resource you should change the command and only if lines:
exec { "ipset destroy ${title}":
path => [ '/sbin', '/usr/sbin', '/bin', '/usr/bin' ],
#command => "/usr/sbin/ipset destroy ${title}",
command => "ipset destroy ${title}",
#onlyif => "/usr/sbin/ipset list -name ${title} &>/dev/null",
onlyif => "ipset list -name ${title} &>/dev/null",
edausq
Metadata
Metadata
Assignees
Labels
No labels