Skip to content

IPSet path #23

@ikkaro

Description

@ikkaro

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",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions