Search code examples
puppet

How do you turn iptables off in Puppet


In puppet what is the equivalent of the following command?

/etc/init.d/iptables stop

Does there exist a iptables service?


Solution

  • Yes, you can just use the service resource:

    service { 'iptables':
      ensure => 'stopped',
      enable => 'false'
    }