]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commit
(#171) Added ensure parameter to firewall class
authorMarc Tardif <marc@interunion.ca>
Wed, 24 Apr 2013 18:46:26 +0000 (14:46 -0400)
committerMarc Tardif <marc@interunion.ca>
Wed, 24 Apr 2013 18:46:26 +0000 (14:46 -0400)
commite0f3746e4c8e9eb251a45dca68fae7d8db128266
tree97d312ef56dcbfc0e43551835dff840e354810d9
parent866e8332a5a8611c26c3c65a2f2b42591591addd
(#171) Added ensure parameter to firewall class

This change adds the ensure parameter to the firewall class so that
the appropriate iptables service for the operating system can be
stopped. The reason for this change is to extend the class so that
it is not just limited to running the service.

The change to the manifests still made all the rspec tests pass,
so it should not introduce any regressions. More rspec tests were
also added to exercise the new code paths introduced.

This pull request fixes issue #171.
manifests/init.pp
manifests/linux.pp
manifests/linux/archlinux.pp
manifests/linux/debian.pp
manifests/linux/redhat.pp
spec/unit/classes/firewall_linux_archlinux_spec.rb
spec/unit/classes/firewall_linux_debian_spec.rb
spec/unit/classes/firewall_linux_redhat_spec.rb
spec/unit/classes/firewall_spec.rb