]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/log
puppet-modules/puppetlabs-firewall.git
13 years agoMerge branch 'ticket/10723-hosts_to_cidr'
Ken Barber [Sat, 3 Dec 2011 20:56:02 +0000 (20:56 +0000)]
Merge branch 'ticket/10723-hosts_to_cidr'

* ticket/10723-hosts_to_cidr:
  (#10723) Munge hostnames and IPs to IPs with CIDR

13 years ago(#10723) Munge hostnames and IPs to IPs with CIDR
Jonathan Boyett [Thu, 17 Nov 2011 17:43:19 +0000 (09:43 -0800)]
(#10723) Munge hostnames and IPs to IPs with CIDR

Previously when hostnames were used in the source and destination properties
they were being converted to IP address by iptables. This meant that later
comparisons were failing because the property in code (a hostname) and the
'real' property returned by introspection (an ip address) were not matching.

This code using the munge facility will automatically detect and convert
hostnames to IP addresses in the type so the comparison works as expected.

The side-effect is that puppet does the hostname to IP conversion, not
iptables.

13 years agoMerge branch 'ticket/11093-log_level'
Ken Barber [Thu, 1 Dec 2011 11:18:36 +0000 (11:18 +0000)]
Merge branch 'ticket/11093-log_level'

* ticket/11093-log_level:
  (#11093) Improve log_level property so it converts names to numbers

13 years ago(#11093) Improve log_level property so it converts names to numbers
Jonathan Boyett [Thu, 1 Dec 2011 02:52:35 +0000 (18:52 -0800)]
(#11093) Improve log_level property so it converts names to numbers

Previously the log_level property was constantly reloading due to the fact
that iptables was converting names to numbers. So unless you were using
numbers in your log_level setting, it was constantly telling you it needed
to be changed.

Now we convert the names to numbers in the munge so when comparing it will
always hopefully match.

Also, the default value when the jump value is 'LOG' is now set to 4 (warn)
based on iptables own defaults.

13 years agoMerge pull request #38 from mediatemple/owner-match
Jonathan Boyett [Wed, 30 Nov 2011 21:12:05 +0000 (13:12 -0800)]
Merge pull request #38 from mediatemple/owner-match

(#10718) Add owner-match support

13 years ago(#10718) Add owner-match support
Sharif Nassar [Mon, 14 Nov 2011 03:10:08 +0000 (19:10 -0800)]
(#10718) Add owner-match support

13 years agoMerge pull request #39 from mediatemple/ipencap-fixtures
Jonathan Boyett [Wed, 30 Nov 2011 20:49:12 +0000 (12:49 -0800)]
Merge pull request #39 from mediatemple/ipencap-fixtures

(#10997) Add fixtures for ipencap

13 years agoMerge pull request #37 from mediatemple/whitespace
Dan Carley [Thu, 24 Nov 2011 16:08:52 +0000 (08:08 -0800)]
Merge pull request #37 from mediatemple/whitespace

Whitespace cleanup. (#11034)

13 years agoMerge branch 'ticket/10997-ipencap'
Ken Barber [Tue, 22 Nov 2011 10:57:13 +0000 (10:57 +0000)]
Merge branch 'ticket/10997-ipencap'

* ticket/10997-ipencap:
  (#10997) Add ipencap (protocol 4) support to firewall type property 'proto'

13 years ago(#10997) Add ipencap (protocol 4) support to firewall type property 'proto'
Sharif Nassar [Sat, 12 Nov 2011 21:08:29 +0000 (13:08 -0800)]
(#10997) Add ipencap (protocol 4) support to firewall type property 'proto'

This change adds ipencap as a viable option, and adds it to tests as well.

13 years agoMerge pull request #33 from saysjonathan/ticket/10690-port
Jonathan Boyett [Fri, 18 Nov 2011 22:12:02 +0000 (14:12 -0800)]
Merge pull request #33 from saysjonathan/ticket/10690-port

(#10690) add port property support to ip6tables

13 years ago(#10690) add port property support to ip6tables
Jonathan Boyett [Fri, 18 Nov 2011 21:54:35 +0000 (13:54 -0800)]
(#10690) add port property support to ip6tables

13 years agoAdd fixtures for ipencap
Sharif Nassar [Mon, 14 Nov 2011 06:04:42 +0000 (22:04 -0800)]
Add fixtures for ipencap

13 years agoWhitespace cleanup.
Sharif Nassar [Sun, 13 Nov 2011 12:23:28 +0000 (04:23 -0800)]
Whitespace cleanup.

13 years agoMerge pull request #32 from kbarber/ticket/10792-release_0.0.3 v0.0.3
Garrett Honeycutt [Sun, 13 Nov 2011 00:59:29 +0000 (16:59 -0800)]
Merge pull request #32 from kbarber/ticket/10792-release_0.0.3

(#10792) Release 0.0.3 - CHANGELOG and Modulefile update

13 years ago(#10792) Release 0.0.3 - CHANGELOG and Modulefile update
Ken Barber [Sat, 12 Nov 2011 23:27:54 +0000 (23:27 +0000)]
(#10792) Release 0.0.3 - CHANGELOG and Modulefile update

13 years agoMerge branch 'maint/fix_copyright_and_licensing'
Ken Barber [Sun, 13 Nov 2011 00:13:26 +0000 (00:13 +0000)]
Merge branch 'maint/fix_copyright_and_licensing'

* maint/fix_copyright_and_licensing:
  (maint) Fix licensing references to GNU GPL.

13 years ago(maint) Fix licensing references to GNU GPL.
Ken Barber [Sun, 13 Nov 2011 00:12:18 +0000 (00:12 +0000)]
(maint) Fix licensing references to GNU GPL.

13 years agoMerge branch 'ticket/10693-limit_module'
Ken Barber [Sat, 12 Nov 2011 18:41:00 +0000 (18:41 +0000)]
Merge branch 'ticket/10693-limit_module'

* ticket/10693-limit_module:
  (#10693) Ensure -m limit is added for iptables when using 'limit' param

13 years ago(#10693) Ensure -m limit is added for iptables when using 'limit' param
Jonathan Boyett [Thu, 10 Nov 2011 00:07:56 +0000 (16:07 -0800)]
(#10693) Ensure -m limit is added for iptables when using 'limit' param

Previously we had only been adding --limit to the iptables arguments
which meant the 'limit' parameter was not working at all. This patch
fixes that.

13 years agoMerge branch 'ticket/10690-multiport_ports'
Ken Barber [Sat, 12 Nov 2011 16:52:42 +0000 (16:52 +0000)]
Merge branch 'ticket/10690-multiport_ports'

* ticket/10690-multiport_ports:
  (#10690) Create new port property

13 years ago(#10690) Create new port property
Jonathan Boyett [Wed, 9 Nov 2011 23:17:41 +0000 (15:17 -0800)]
(#10690) Create new port property

This new property will allow you to specify ports that match both destination
and source.

This works the same as dport and sport parameters, so it provides array
support and hyphen separated ranges of ports as well.

13 years agoMerge branch 'ticket/10700-comment_validation'
Ken Barber [Sat, 12 Nov 2011 16:38:18 +0000 (16:38 +0000)]
Merge branch 'ticket/10700-comment_validation'

* ticket/10700-comment_validation:
  (#10700) allow additional characters in comment string

13 years ago(#10700) allow additional characters in comment string
Jonathan Boyett [Thu, 10 Nov 2011 02:55:08 +0000 (18:55 -0800)]
(#10700) allow additional characters in comment string

13 years agoMerge branch 'ticket/9082-state-change'
Ken Barber [Sun, 30 Oct 2011 11:31:48 +0000 (11:31 +0000)]
Merge branch 'ticket/9082-state-change'

* ticket/9082-state-change:
  (#9082) Sort iptables --state option values internally to keep it consistent across runs

13 years ago(#9082) Sort iptables --state option values internally to keep it consistent across...
Chris Boulton [Mon, 24 Oct 2011 06:27:31 +0000 (17:27 +1100)]
(#9082) Sort iptables --state option values internally to keep it consistent across runs

Previously we were getting multiple re-runs due to the fact that iptables
returns a different order with iptables-save then what was used when creating
the rule.

This patch fixes that by sorting states with should=.

Added unit tests to ensure states are correctly sorted. Also added comments in
code to ensure people understand why

13 years agoMerge pull request #26 from kbarber/ticket/10324-extra_spaces
Dan Carley [Thu, 27 Oct 2011 11:25:00 +0000 (04:25 -0700)]
Merge pull request #26 from kbarber/ticket/10324-extra_spaces

(#10324) Remove extraneous whitespace from iptables rule line in spec tes

13 years ago(#10324) Remove extraneous whitespace from iptables rule line in spec tests
Ken Barber [Thu, 27 Oct 2011 11:20:36 +0000 (12:20 +0100)]
(#10324) Remove extraneous whitespace from iptables rule line in spec tests

The extra spaces between port numbers were messing up the parse and
putting elements in the wrong parts of the hash during rule_to_hash.

This wasn't causing a test problem now, but was creating an issue for
other work people were doing on the module.

13 years agoMerge pull request #23 from kbarber/ticket/10303-release_0.0.2 v0.0.2
Jonathan Boyett [Wed, 26 Oct 2011 18:33:48 +0000 (11:33 -0700)]
Merge pull request #23 from kbarber/ticket/10303-release_0.0.2

(#10303) Release 0.0.2 - CHANGELOG and Modulefile update

13 years ago(#10303) Release 0.0.2 - CHANGELOG and Modulefile update
Ken Barber [Wed, 26 Oct 2011 18:24:32 +0000 (19:24 +0100)]
(#10303) Release 0.0.2 - CHANGELOG and Modulefile update

13 years agoMerge pull request #22 from kbarber/ticket/10295-util_loader
Jonathan Boyett [Wed, 26 Oct 2011 16:49:34 +0000 (09:49 -0700)]
Merge pull request #22 from kbarber/ticket/10295-util_loader

(#10295) Work around bug #4248 whereby the puppet/util paths are not bein

13 years ago(#10295) Work around bug #4248 whereby the puppet/util paths are not being loaded...
Ken Barber [Wed, 26 Oct 2011 10:24:33 +0000 (12:24 +0200)]
(#10295) Work around bug #4248 whereby the puppet/util paths are not being loaded correctly on the puppetmaster

This patch suggested by Dan Carley will work-around the puppet/util error
specified in bug #4248 by loading relative paths instead.

This also fixes the load errors related to running the resource in a standalone
puppet case as well.

If the load fails for some reason, we fall back to the normal load behaviour.
This order is important as we want to load libraries before sync in case the
user has disabled pluginsync in the meantime. This will ensure we attempt to
get the latest copy, but have a fall back just in case.

I believe this fix will need to be applied for some time to support older Puppet
versions.

I've updated the documentation to provide more thorough instructions for
cases where people are using environments, and to tell people to pluginsync
on the master and potentially restart their puppetmaster first just in case.

13 years agoMerge pull request #21 from kbarber/ticket/10002-range_of_ports
Jonathan Boyett [Wed, 26 Oct 2011 15:31:42 +0000 (08:31 -0700)]
Merge pull request #21 from kbarber/ticket/10002-range_of_ports

(#10002) Change to dport and sport to handle ranges, and fix handling of

13 years ago(#10002) Change to dport and sport to handle ranges, and fix handling of name to...
Ken Barber [Tue, 11 Oct 2011 17:29:17 +0000 (18:29 +0100)]
(#10002) Change to dport and sport to handle ranges, and fix handling of name to port.

We hadn't been allowing ranges of the kind 22:1000 for ranges. This patch
fixes that. Thanks to Jason Hancock for finding this issue and providing a sample
patch.

Instead of using colon though, it was decided we would use a hyphen to specify a range
as its more agnostic. This patch does the filtering for both writing the rule and
reading the rule.

Also - the way we were doing name to port conversion had been broken. I found
this out while fixing the ranges, and have now fixed it and added tests.

13 years agoMerge pull request #20 from kbarber/ticket/10263-tests_fail_on_puppet-2.6.x
Jonathan Boyett [Tue, 25 Oct 2011 15:02:50 +0000 (08:02 -0700)]
Merge pull request #20 from kbarber/ticket/10263-tests_fail_on_puppet-2.6.x

(#10263) Fix tests on Puppet 2.6.x

13 years ago(#10263) Fix tests on Puppet 2.6.x
Ken Barber [Tue, 25 Oct 2011 09:10:42 +0000 (10:10 +0100)]
(#10263) Fix tests on Puppet 2.6.x

Due to the lack of Puppet::Test::LogCollector class, tests fail on puppet
2.6.x. Instead of just using the class, I'm testing its existance first
and only using it if it exists. Otherwise, I'm going to fall back to 2.6.x
methodology.

This seems to make tests work on 2.6.7 (and up) and 2.7.1 (and up) which is
sufficient for now.

13 years agoMerge pull request #17 from kbarber/ticket/10163-doc_cleanup
Jonathan Boyett [Sat, 22 Oct 2011 18:24:44 +0000 (11:24 -0700)]
Merge pull request #17 from kbarber/ticket/10163-doc_cleanup

(#10163) Cleanup some of the inline documentation and README file to alig

13 years ago(#10163) Cleanup some of the inline documentation and README file to align with gener...
Ken Barber [Wed, 19 Oct 2011 07:57:48 +0000 (08:57 +0100)]
(#10163) Cleanup some of the inline documentation and README file to align with general forge usage.

* The README.markdown file had a lot of property information that was
  duplicated in the type itself. The README.markdown file has more info in
  some cases, I have moved this into the type.
* The README.markdown lacked documentation on how to install the module using
  the forge which meant users accessing it via github would be inclined to
  download the development version from github instead.
* Cleaned up doc string alignments and made it consistent with all types.

13 years agoMerge pull request #15 from kbarber/ticket/9362-action_property v0.0.1
Jonathan Boyett [Tue, 18 Oct 2011 21:35:54 +0000 (14:35 -0700)]
Merge pull request #15 from kbarber/ticket/9362-action_property

(#9362) Create action property and perform transformation for accept, dro

13 years ago(#9362) Create action property and perform transformation for accept, drop, reject...
Ken Barber [Mon, 10 Oct 2011 07:11:27 +0000 (08:11 +0100)]
(#9362) Create action property and perform transformation for accept, drop, reject value for iptables jump parameter.

This commit introduces the new 'action' parameter which is designed to designate
the action to take when a match succeeds. This is a cross-platform parameter and
for the values 'accept','drop','reject' it will take the place of the existing
jump parameter.

The jump parameter is deemed as an iptables specific parameter so by splitting
out this parameter for common actions it allows us to extend the firewall
resource to include other providers much more easily in the future. By having
such a common parameter we will be able to compare resources between boxes that
may have different firewall implementations.

The new behaviour is to force the usage for action parameter, and using
'accept', 'drop' or 'reject' for jump will now no longer work.

Also - the default of 'accept' for jump has been removed which means you MUST
specify an action if you want your rule to do something. Without an action the
rule will match, but do nothing (so only useful for keeping counters generally).

To aid in the testing of this new property I've added new ways to test converting
iptables rules to hashes and hashes to general_args. This should simplify the
testing of new bugs as well.

13 years agoMerge pull request #16 from kbarber/ticket/10088-contributing
Jonathan Boyett [Tue, 18 Oct 2011 20:29:04 +0000 (13:29 -0700)]
Merge pull request #16 from kbarber/ticket/10088-contributing

(#10088) Provide a customised version of CONTRIBUTING.md

13 years ago(#10088) Provide a customised version of CONTRIBUTING.md
Ken Barber [Fri, 14 Oct 2011 10:13:10 +0000 (12:13 +0200)]
(#10088) Provide a customised version of CONTRIBUTING.md

The goal here is to provide some clear documentation to point contributors
at when they want to submit code. This document is a copy of the facter one,
slight modified for puppetlabs-firewall.

13 years agoMerge pull request #14 from kbarber/ticket/10026-type_rspec_rake_cleanup
Jonathan Boyett [Tue, 11 Oct 2011 22:38:37 +0000 (15:38 -0700)]
Merge pull request #14 from kbarber/ticket/10026-type_rspec_rake_cleanup

Ticket/10026 type rspec rake cleanup

13 years ago(#10026) Re-arrange provider and type spec files to align with Puppet.
Ken Barber [Tue, 11 Oct 2011 19:21:54 +0000 (20:21 +0100)]
(#10026) Re-arrange provider and type spec files to align with Puppet.

If moved the spec files now under 'puppet' to align with how Puppet does it. This
also makes more sense as this lines up with the module/class names now.

The iptables_type_spec.rb is now just firewall_type.rb to designate it is for
the generic firewall type.

iptables_prov_spec.rb is now iptables_spec.rb. The provider part is implicit
in the path.

13 years ago(#10026) Add aliases for test,specs,tests to Rakefile and provide -T as default.
Ken Barber [Tue, 11 Oct 2011 19:18:01 +0000 (20:18 +0100)]
(#10026) Add aliases for test,specs,tests to Rakefile and provide -T as default.

I've cleaned up the Rakefile a bit so that the aliases:

* test
* specs
* tests

Now point to "spec". The (s) versions are used by rvm but generally these are
all provided for convenience in case someone uses the wrong form.

I've also changed the default rake task to show the list of tasks (rake -T).

The description for rake spec is also a bit longer.

13 years agoMerge branch 'ticket/9439-existing_rules'
Ken Barber [Tue, 11 Oct 2011 18:55:22 +0000 (19:55 +0100)]
Merge branch 'ticket/9439-existing_rules'

* ticket/9439-existing_rules:
  (#9439) fix parsing and deleting existing rules

Reviewed-by: Ken Barber <ken@bob.sh>
13 years ago(#9439) fix parsing and deleting existing rules
Jonathan Boyett [Wed, 28 Sep 2011 20:55:02 +0000 (13:55 -0700)]
(#9439) fix parsing and deleting existing rules

Previously we hadn't been able to parse existing rules that were missing
a comment field. This patch fixes that by using an MD5 hash of the iptables
raw line as the name of the property.

We have also cleaned up the way we delete arguments by adding a new
delete_args function to return valid delete_args. Instead of having to work
out the rule order we now just delete the rule based on the specification.

13 years agoMerge pull request #11 from kbarber/ticket/9583-missing_distro_support
Ken Barber [Sun, 18 Sep 2011 21:44:53 +0000 (14:44 -0700)]
Merge pull request #11 from kbarber/ticket/9583-missing_distro_support

(#9583) Fix provider detection for gentoo and unsupported linuxes for the

13 years ago(#9583) Fix provider detection for gentoo and unsupported linuxes for the iptables...
Ken Barber [Sun, 18 Sep 2011 21:28:11 +0000 (22:28 +0100)]
(#9583) Fix provider detection for gentoo and unsupported linuxes for the iptables provider.

Previously we had fairly specific confine settings for named distributions
of linux for the iptables provider. This was silly, since the commands
defined in the provider should be enough to confine the provider to Linux
only systems.

I've removed the confine, and replaced the defaultfor to be:

  :kernel => :linux

Which should avoid the need to keep adding extra Linux distributions.

I've also added some spec tests for provider detection which should help
catch any failures around the command based detection in the future.

13 years agoMerge pull request #10 from kbarber/ticket/9576-test_cleanup
Ken Barber [Sun, 18 Sep 2011 11:30:46 +0000 (04:30 -0700)]
Merge pull request #10 from kbarber/ticket/9576-test_cleanup

(#9576) rspec test cleanup

Reviewed-by: Ken Barber <ken@bob.sh>
13 years ago(#9576) Stub provider so it works properly outside of Linux.
Ken Barber [Sun, 18 Sep 2011 01:54:45 +0000 (02:54 +0100)]
(#9576) Stub provider so it works properly outside of Linux.

13 years ago(#9576) Stub iptables type so it will execute on platforms other then linux.
Ken Barber [Sat, 17 Sep 2011 22:46:35 +0000 (23:46 +0100)]
(#9576) Stub iptables type so it will execute on platforms other then linux.

This change will help us target other platforms for this type. I've also
removed old helpers to align with Puppet core spec_helper. While this might
seem more invconvenient it provides more consistency with core Puppet type
testing.

13 years ago(#9576) Align spec framework with Puppet core.
Ken Barber [Sat, 17 Sep 2011 22:40:53 +0000 (23:40 +0100)]
(#9576) Align spec framework with Puppet core.

The point of this change is to align the spec testing behaviour with Puppet core
so we can get similar behaviour and less problems if we ever want to move this
type into core.

13 years agoMerge pull request #9 from bookest/patch-1
Jonathan Boyett [Mon, 29 Aug 2011 19:02:46 +0000 (12:02 -0700)]
Merge pull request #9 from bookest/patch-1

use iptables-save in the persistent rules example

13 years agouse iptables-save in the persistent rules example
Christopher Grim [Sat, 27 Aug 2011 01:52:44 +0000 (22:52 -0300)]
use iptables-save in the persistent rules example

13 years agofix provider source parameter
Jonathan Boyett [Tue, 16 Aug 2011 17:54:35 +0000 (10:54 -0700)]
fix provider source parameter

13 years agocreate ip6tables test manifest
Jonathan Boyett [Tue, 16 Aug 2011 17:06:22 +0000 (10:06 -0700)]
create ip6tables test manifest

13 years agocreate ip6tables provider
Jonathan Boyett [Tue, 16 Aug 2011 17:05:58 +0000 (10:05 -0700)]
create ip6tables provider

13 years agoadd newvalue ipv6-icmp to proto
Jonathan Boyett [Tue, 16 Aug 2011 17:05:20 +0000 (10:05 -0700)]
add newvalue ipv6-icmp to proto

13 years agoimproving rule slicing and dicing
Jonathan Boyett [Tue, 16 Aug 2011 17:04:27 +0000 (10:04 -0700)]
improving rule slicing and dicing

13 years agoconvert class variables to instance variables so we can have unique attributes for...
Jonathan Boyett [Mon, 15 Aug 2011 22:49:54 +0000 (15:49 -0700)]
convert class variables to instance variables so we can have unique attributes for each type

13 years agosmall refactor of value munging of existing rules
Jonathan Boyett [Mon, 15 Aug 2011 18:18:14 +0000 (11:18 -0700)]
small refactor of value munging of existing rules

13 years agoMerge branch 'master' of github.com:puppetlabs/puppetlabs-firewall
Jonathan Boyett [Mon, 15 Aug 2011 18:16:14 +0000 (11:16 -0700)]
Merge branch 'master' of github.com:puppetlabs/puppetlabs-firewall

13 years agoallow only a single source or destination value per resource. fixes #2
Jonathan Boyett [Mon, 15 Aug 2011 18:13:20 +0000 (11:13 -0700)]
allow only a single source or destination value per resource. fixes #2

13 years agoallow only a single source or destination value per resource. fixes #4
Jonathan Boyett [Mon, 15 Aug 2011 18:13:20 +0000 (11:13 -0700)]
allow only a single source or destination value per resource. fixes #4

13 years agofix state array in readme.pp rule
Jonathan Boyett [Mon, 15 Aug 2011 17:13:25 +0000 (10:13 -0700)]
fix state array in readme.pp rule

13 years agofix --libdir in iptables example run script
Jonathan Boyett [Mon, 15 Aug 2011 16:42:21 +0000 (09:42 -0700)]
fix --libdir in iptables example run script

13 years agoFix iptables option ordering issues (thanks to Adrian Bridgett)
Ken Barber [Mon, 8 Aug 2011 12:07:58 +0000 (14:07 +0200)]
Fix iptables option ordering issues (thanks to Adrian Bridgett)

13 years agoRemoved a bug I introduced from the last commit. 'desc' is not valid in ensure values.
Ken Barber [Sun, 17 Jul 2011 02:51:50 +0000 (04:51 +0200)]
Removed a bug I introduced from the last commit. 'desc' is not valid in ensure values.

13 years ago(#6) - added action property to type for future provider support.
Ken Barber [Sat, 16 Jul 2011 19:45:00 +0000 (21:45 +0200)]
(#6) - added action property to type for future provider support.

13 years agoApplied docs to explain putting rejects in post stage (#4). Plus some re-organisation...
Ken Barber [Sat, 16 Jul 2011 19:33:40 +0000 (21:33 +0200)]
Applied docs to explain putting rejects in post stage (#4). Plus some re-organisation of documentation to bundle property types together.

13 years agoRemoved iptables stuff, introduced features and cleaned up docs & validation.
Ken Barber [Sat, 16 Jul 2011 19:19:49 +0000 (21:19 +0200)]
Removed iptables stuff, introduced features and cleaned up docs & validation.

I've removed a lot of iptables specific stuff from the type, also
allowed any chain to be defined in :chain or :jump so we can support
user chains.

A lot of the documentation for the type has been cleaned up a little
and validation has been simplified where applicable.

This commit brings in the usage of features so we can start to introduce
more backend providers. The work is just a start for now and will
probably radically change once we have other working providers in
place.

13 years agoreplace String#lines with a String#split to ensure compatibility with Ruby 1.8.5
Jonathan Boyett [Mon, 11 Jul 2011 17:19:07 +0000 (10:19 -0700)]
replace String#lines with a String#split to ensure compatibility with Ruby 1.8.5

13 years agoensure the name parameter starts with a digit
Jonathan Boyett [Mon, 11 Jul 2011 17:18:20 +0000 (10:18 -0700)]
ensure the name parameter starts with a digit

13 years agoAdded quickstart not on how to make firewall rules persistent.
Ken Barber [Sun, 10 Jul 2011 22:42:25 +0000 (23:42 +0100)]
Added quickstart not on how to make firewall rules persistent.

13 years agouse setup methods in iptables_prov_spec
Jonathan Boyett [Tue, 28 Jun 2011 18:41:03 +0000 (11:41 -0700)]
use setup methods in iptables_prov_spec

13 years agouse setup_resource method in iptables_type_spec
Jonathan Boyett [Tue, 28 Jun 2011 18:40:43 +0000 (11:40 -0700)]
use setup_resource method in iptables_type_spec

13 years agocreate helper methods for provider, resource, and instance setup
Jonathan Boyett [Tue, 28 Jun 2011 18:39:51 +0000 (11:39 -0700)]
create helper methods for provider, resource, and instance setup

13 years agoAdd note about pluginsync for installation.
Ken Barber [Wed, 22 Jun 2011 19:16:53 +0000 (20:16 +0100)]
Add note about pluginsync for installation.

13 years agoadd masquerade sample to test manifest
Jonathan Boyett [Wed, 22 Jun 2011 17:23:52 +0000 (10:23 -0700)]
add masquerade sample to test manifest

13 years agofix outiface validation to check for postrouting chain
Jonathan Boyett [Wed, 22 Jun 2011 17:23:19 +0000 (10:23 -0700)]
fix outiface validation to check for postrouting chain

13 years agoSmall example for MASQUERADE.
Ken Barber [Mon, 20 Jun 2011 22:30:01 +0000 (23:30 +0100)]
Small example for MASQUERADE.

13 years agoFix 1 line in doc.
Ken Barber [Mon, 20 Jun 2011 22:26:49 +0000 (23:26 +0100)]
Fix 1 line in doc.

13 years agoSome initial parameter documentation for README.markdown.
Ken Barber [Mon, 20 Jun 2011 22:24:18 +0000 (23:24 +0100)]
Some initial parameter documentation for README.markdown.

13 years agoadd additional iptables provider unit tests
Jonathan Boyett [Mon, 20 Jun 2011 20:06:06 +0000 (13:06 -0700)]
add additional iptables provider unit tests

13 years agoadd instances test
Jonathan Boyett [Thu, 16 Jun 2011 22:54:07 +0000 (15:54 -0700)]
add instances test

13 years agoremove unnecessary require from type
Jonathan Boyett [Thu, 16 Jun 2011 21:50:13 +0000 (14:50 -0700)]
remove unnecessary require from type

13 years agolet icmp param accept integers in addition to strings
Jonathan Boyett [Thu, 16 Jun 2011 21:46:29 +0000 (14:46 -0700)]
let icmp param accept integers in addition to strings

13 years agoremove array length validation from dport and sport
Jonathan Boyett [Thu, 16 Jun 2011 18:59:13 +0000 (11:59 -0700)]
remove array length validation from dport and sport

13 years agomove rspec options to rakefile
Jonathan Boyett [Thu, 16 Jun 2011 18:33:14 +0000 (11:33 -0700)]
move rspec options to rakefile

13 years agoremove extra file
Jonathan Boyett [Thu, 16 Jun 2011 18:13:53 +0000 (11:13 -0700)]
remove extra file

13 years agoadd tests for remaining params
Jonathan Boyett [Thu, 16 Jun 2011 18:12:07 +0000 (11:12 -0700)]
add tests for remaining params

13 years agoadd tests for table, proto, jump, source, and destination params
Jonathan Boyett [Wed, 15 Jun 2011 22:08:33 +0000 (15:08 -0700)]
add tests for table, proto, jump, source, and destination params

13 years agoMerge branch 'master' of github.com:puppetlabs/puppetlabs-firewall
Jonathan Boyett [Wed, 15 Jun 2011 21:22:11 +0000 (14:22 -0700)]
Merge branch 'master' of github.com:puppetlabs/puppetlabs-firewall

13 years agoadd test for name, table, chain, dport, and sport parameters
Jonathan Boyett [Wed, 15 Jun 2011 21:18:58 +0000 (14:18 -0700)]
add test for name, table, chain, dport, and sport parameters

13 years agoAdded some notes about how to run tests.
Ken Barber [Wed, 15 Jun 2011 20:54:56 +0000 (22:54 +0200)]
Added some notes about how to run tests.

13 years agoadd rakefile
Jonathan Boyett [Wed, 15 Jun 2011 20:42:58 +0000 (13:42 -0700)]
add rakefile

13 years agoadd type tests
Jonathan Boyett [Wed, 15 Jun 2011 20:42:49 +0000 (13:42 -0700)]
add type tests

13 years agoadd provider tests
Jonathan Boyett [Wed, 15 Jun 2011 20:42:36 +0000 (13:42 -0700)]
add provider tests

13 years agoadd spec.opts
Jonathan Boyett [Wed, 15 Jun 2011 20:42:15 +0000 (13:42 -0700)]
add spec.opts