Commits on Feb 19, 2018

  1. Fix ordering when checking insync

    `is` is not guaranteed to be sorted so we need to sort it before
    comparing to `should.sort`
    Mark Egan-Fuller committed Feb 19, 2018
    Configuration menu
    Copy the full SHA
    f8a90d6 View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2018

  1. Add defaults for services and ports

    Having to specify service/port, zone and ensure for each service or port
    is highly redundant and cumbersome. Make service and port default to the
    resource name, ensure default to present and allow to set a default
    target zone for services and ports via parameters to the firewalld
    class. For ports the default protocol can also be set through a
    firewalld class parameter.
    
    Incidentally change the port spec test which seems to be incorrect
    regarding parameter port accepting a hash.
    michaelweiser committed Mar 27, 2018
    Configuration menu
    Copy the full SHA
    2d1e746 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2018

  1. Add firewalld options

    Control CleanupOnExit, MinimalMark, Lockdown, IPv6_rpfilter
    jfroche committed Mar 29, 2018
    Configuration menu
    Copy the full SHA
    735b150 View commit details
    Browse the repository at this point in the history
  2. Fix lint

    jfroche committed Mar 29, 2018
    Configuration menu
    Copy the full SHA
    ef7c354 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2018

  1. Fix ipset documentation

    jfroche committed Apr 4, 2018
    Configuration menu
    Copy the full SHA
    6e0561e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1b04338 View commit details
    Browse the repository at this point in the history
  3. Add new options

    Define firewalld ipset options using properties:
    
     - family
     - hashsize
     - maxelem
     - timeout
    
    This change is backward compatible with the definition of options using
    the `options` property.
    jfroche committed Apr 4, 2018
    Configuration menu
    Copy the full SHA
    69eb4ee View commit details
    Browse the repository at this point in the history
  4. Remove /32 as they get removed by ipset

    /32 is stripped by ipset when the rules is created.
    jfroche committed Apr 4, 2018
    Configuration menu
    Copy the full SHA
    7dc8592 View commit details
    Browse the repository at this point in the history
  5. Improve logging of the ipset member changes

    When you have a long list of ips in a set, it is easier to only show what
    actually changed (removal and addition).
    jfroche committed Apr 4, 2018
    Configuration menu
    Copy the full SHA
    3b94236 View commit details
    Browse the repository at this point in the history
  6. Use instances & prefetch to define ipset state

    We parse actual ipset rules to define existing resource. We avoid
    declaration of getter.
    jfroche committed Apr 4, 2018
    Configuration menu
    Copy the full SHA
    0b3fe02 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2018

  1. In a service definition, the port is optional

    We can now declare service as a protocol without port
    jfroche committed Apr 6, 2018
    Configuration menu
    Copy the full SHA
    4ab0f51 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9faf3fd View commit details
    Browse the repository at this point in the history
  3. Add description and short option for zone

    Give more details about a zone
    jfroche committed Apr 6, 2018
    Configuration menu
    Copy the full SHA
    6e08dce View commit details
    Browse the repository at this point in the history
  4. Ipset name can have dash

    jfroche committed Apr 6, 2018
    Configuration menu
    Copy the full SHA
    4924f6c View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2018

  1. Add new firewalld_ipset option: manage_entries

    Sometimes firewalld ipset entries are modified by another process than puppet.
    If you want to declare the ipset with puppet but not manage the entries,
    we add the `manage_entries` option.
    
    Obviously, by default entries are managed by puppet.
    
    We throw an error if you try to define ipset entries with puppet and
    don't want to manage entries (`manage_entries = false`)
    jfroche committed Apr 12, 2018
    Configuration menu
    Copy the full SHA
    d97ea56 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1 from jfroche/feature/manage-ipset-entries-option

     Add new firewalld_ipset option: manage_entries
    jfroche authored Apr 12, 2018
    Configuration menu
    Copy the full SHA
    f043611 View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2018

  1. manage_entries should be a parameter

    From documentation: Parameters change how Puppet manages a resource, but
    do not necessarily map directly to something measurable.
    jfroche committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    ad8edb4 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2018

  1. Add option to remove unknown ipsets

    This option is useful if you want to control ipsets only with puppet.
    jfroche committed Apr 19, 2018
    Configuration menu
    Copy the full SHA
    5ae166c View commit details
    Browse the repository at this point in the history
  2. Merge pull request #2 from jfroche/feature/purge-unknown-ipset

    Add option to remove unknown ipsets
    jfroche committed Apr 19, 2018
    Configuration menu
    Copy the full SHA
    9b59f34 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2018

  1. Add validation for rich rule action

    It can be a string or a hash. We validate string content and hash
    content.
    
    +tests
    jfroche committed Apr 21, 2018
    Configuration menu
    Copy the full SHA
    ef733bb View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2018

  1. Do not check if ipset exists again

    If ipset is created with `instances` and `prefetch`, there is no need to
    verify if the set exists using firewalld-cmd
    jfroche committed Apr 26, 2018
    Configuration menu
    Copy the full SHA
    dc0247f View commit details
    Browse the repository at this point in the history
  2. Merge pull request #5 from jfroche/enhancement/ipset-exists-speedup

    Do not check if ipset exists again
    jfroche authored Apr 26, 2018
    Configuration menu
    Copy the full SHA
    7b42412 View commit details
    Browse the repository at this point in the history

Commits on May 3, 2018

  1. Pin old rspec-puppet

    Latest version (2.6.11) has a compatibility problem with 4.0
    jfroche committed May 3, 2018
    Configuration menu
    Copy the full SHA
    9aa9751 View commit details
    Browse the repository at this point in the history
  2. Verify if firewalld is online before self.execute_firewall_cmd

    self.instances method on the provider class did not verify if firewalld had a
    correct state before issuing `firewall-cmd` commands.
    This was a problem as we were trying to collect ipset informations
    without checking if firewalld was ready.
    
    So we move the `available?` implementation to the class method to be
    able to verify the current firewalld state.
    jfroche committed May 3, 2018
    Configuration menu
    Copy the full SHA
    eece5e7 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #6 from jfroche/bug/ipset-check-firewalld-enabled

    Verify if firewalld is online before self.execute_firewall_cmd
    jfroche authored May 3, 2018
    Configuration menu
    Copy the full SHA
    25b7778 View commit details
    Browse the repository at this point in the history

Commits on May 10, 2018

  1. Merge pull request #179 from jfroche/bug/fix-puppet40-tests

    Pin old rspec-puppet
    crayfishx authored May 10, 2018
    Configuration menu
    Copy the full SHA
    81ca50f View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2018

  1. Merge pull request #166 from markeganfuller/fix_ordering

    Fix ordering when checking insync
    crayfishx authored Jun 13, 2018
    Configuration menu
    Copy the full SHA
    0561230 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #167 from michaelweiser/defaults

    Add defaults for services and ports
    crayfishx authored Jun 13, 2018
    Configuration menu
    Copy the full SHA
    86737d9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    42fb269 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #168 from jfroche/add-firewalld-config-options

    Add firewalld config options
    crayfishx authored Jun 13, 2018
    Configuration menu
    Copy the full SHA
    e0d913d View commit details
    Browse the repository at this point in the history
  5. Merge pull request #169 from jfroche/add-service-description-short

    Add description and short option for firewalld zone
    crayfishx authored Jun 13, 2018
    Configuration menu
    Copy the full SHA
    7ad9cdf View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4b9b368 View commit details
    Browse the repository at this point in the history
  7. Merge pull request #170 from jfroche/ipset-options

    Ipset options
    crayfishx authored Jun 13, 2018
    Configuration menu
    Copy the full SHA
    017e6bd View commit details
    Browse the repository at this point in the history
  8. Merge pull request #171 from jfroche/feature/optional_port

    In a service definition, the port is optional
    crayfishx authored Jun 13, 2018
    Configuration menu
    Copy the full SHA
    77bbdca View commit details
    Browse the repository at this point in the history
  9. Merge pull request #172 from jfroche/enhancement/remove_validate

    Use types and remove validate
    crayfishx authored Jun 13, 2018
    Configuration menu
    Copy the full SHA
    3d70a1d View commit details
    Browse the repository at this point in the history
  10. Merge pull request #173 from jfroche/feature/enable-dash-in-ipset-name

    Ipset name can have dash
    crayfishx authored Jun 13, 2018
    Configuration menu
    Copy the full SHA
    7ccf7a0 View commit details
    Browse the repository at this point in the history
  11. Merge pull request #174 from jfroche/enhancement/validate-rich-rule-a…

    …ction
    
    Add validation for rich rule action
    crayfishx authored Jun 13, 2018
    Configuration menu
    Copy the full SHA
    d3a8b5d View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2018

  1. Configuration menu
    Copy the full SHA
    aa08d70 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #184 from crayfishx/remove_puppet_43

    Removed puppet < 4.3 support
    crayfishx authored Jun 19, 2018
    Configuration menu
    Copy the full SHA
    135a0cf View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2018

  1. Update README.md custom_service example

    Fixing syntax in firewalld::custom_service example
    eRaid6 authored Aug 27, 2018
    Configuration menu
    Copy the full SHA
    3f3c339 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2018

  1. Allow puppetlabs-stdlib < 6.0.0

    Fixes #191
    djschaap committed Oct 31, 2018
    Configuration menu
    Copy the full SHA
    2d49d6e View commit details
    Browse the repository at this point in the history

Commits on May 31, 2019

  1. Update metadata.json to allow stdlib 6.x

    Co-Authored-By: Alexander Fisher <alex@linfratech.co.uk>
    djschaap and alexjfisher authored May 31, 2019
    Configuration menu
    Copy the full SHA
    6b827b4 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2019

  1. add voxpupuli note

    crayfishx committed Sep 19, 2019
    Configuration menu
    Copy the full SHA
    e11ebbc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e8a7258 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2019

  1. Merge pull request #192 from djschaap/stdlib

    Allow `puppetlabs-stdlib` 6
    alexjfisher authored Sep 20, 2019
    Configuration menu
    Copy the full SHA
    90c90ad View commit details
    Browse the repository at this point in the history
  2. Test against latest stdlib

    Fixes #191
    alexjfisher committed Sep 20, 2019
    Configuration menu
    Copy the full SHA
    7ee240a View commit details
    Browse the repository at this point in the history
  3. Fixing syntax issue with puppet server 5.3

    Probably some issue with jruby parser.
    Using more simple syntax fixed the issue
    
    Error: Could not retrieve catalog from remote server: Error 500 on
    SERVER: Server Error: Evaluation Error: Error while evaluating a
    Resource Statement, Could not autoload puppet/type/firewalld_zone: Could
    not autoload puppet/type/firewalld_rich_rule:
    /etc/puppetlabs/code/environments/firewalld/modules/firewalld/lib/puppet_x/firewalld/property/rich_rule_action.rb:10:
    unknown type of %string
                if value.keys.sort != %i[action type]
                                                    ^
    (file: /etc/puppetlabs/code/environments/firewalld/modules/firewalld/manifests/init.pp, line: 117, column: 7) on node test.example.com
    Warning: Not using cache on failed catalog
    Error: Could not retrieve catalog; skipping run
    Guillaume Ludinard authored and alexjfisher committed Sep 20, 2019
    Configuration menu
    Copy the full SHA
    b121267 View commit details
    Browse the repository at this point in the history
  4. Make firewall_cmd.rb ruby 1.9 compatible

    Puppetserver 5 still uses jruby 1.7 by default.  This is compatible with
    ruby 1.9 only.
    
    The `**` splat operator came out in ruby 2.0.
    https://www.freecodecamp.org/news/rubys-splat-and-double-splat-operators-ceb753329a78/
    
    I've replaced its use with `merge`.
    
    Ruby 2.0 also introduced `%i[ ]` as an array of symbols.
    https://ruby-doc.org/core-2.5.1/doc/syntax/literals_rdoc.html
    alexjfisher committed Sep 20, 2019
    Configuration menu
    Copy the full SHA
    8d2c2e2 View commit details
    Browse the repository at this point in the history
  5. Drop puppet 4 support and allow puppet 6

    Also update metadata.json for migration to Vox Pupuli
    See https://voxpupuli.org/blog/2019/01/03/dropping-puppet4
    alexjfisher committed Sep 20, 2019
    Configuration menu
    Copy the full SHA
    f36f452 View commit details
    Browse the repository at this point in the history
  6. Add badges to README

    alexjfisher committed Sep 20, 2019
    Configuration menu
    Copy the full SHA
    e10adeb View commit details
    Browse the repository at this point in the history