Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPSet path #23

Open
ikkaro opened this issue May 22, 2017 · 0 comments
Open

IPSet path #23

ikkaro opened this issue May 22, 2017 · 0 comments

Comments

@ikkaro
Copy link

ikkaro commented May 22, 2017

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",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant