]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commit
(#10162) Various fixes for firewallchain resource
authorKen Barber <ken@bob.sh>
Mon, 12 Mar 2012 04:16:33 +0000 (21:16 -0700)
committerKen Barber <ken@bob.sh>
Mon, 12 Mar 2012 07:42:03 +0000 (00:42 -0700)
commit9715882ad39ca53338f1ac212675e97d01db769f
tree3358b1fb827f0c42f56c7e73086e404d1f0ec18e
parent005b8be88abc613b8a5b021c781efd6637451d5f
(#10162) Various fixes for firewallchain resource

* Convert commands to optional_commands to avoid iptables installation chicken
  & egg scenarios.
* Downcase tables to match the table names in xtables
* Force fully qualifying the name as <table>:<chain>:<protocol>, we can add
  meaningful defaults later.
* puppet resource <name> command wasn't working as expected, but stripping out
  some of the meaningful defaults I was able to get this to work.
* Reformat some of the code to avoid overrunning 80 chars where possible
* Remove trailing whitespace
* Add flush to provider so that resource modifications immediately update the
  resource in reports and when using puppet resource.
* Removed any commented out code
* Improved documentation
* Change policy so its undefined when not set, instead of being :empty
* Fix test mocking so they will run on a Mac
README.markdown
lib/puppet/provider/firewallchain/iptables_chain.rb
lib/puppet/type/firewallchain.rb
spec/unit/puppet/provider/iptables_chain_spec.rb
spec/unit/puppet/type/firewallchain_spec.rb