diff --git a/Puppetfile b/Puppetfile index 95e240441..dd812a6c0 100644 --- a/Puppetfile +++ b/Puppetfile @@ -95,7 +95,7 @@ mod 'memcached', :git => 'https://github.com/saz/puppet-memcached.git' mod 'module-collectd', - :commit => '1bd511019fe1da9b305b259862aa27516f083be6', + :commit => 'e01c6f21241e282d5f2008c794109af9af01c45f', :git => 'https://github.com/pdxcat/puppet-module-collectd.git' mod 'module-data', diff --git a/module-collectd/.fixtures.yml b/module-collectd/.fixtures.yml index c65bd570a..99067d889 100644 --- a/module-collectd/.fixtures.yml +++ b/module-collectd/.fixtures.yml @@ -1,6 +1,9 @@ fixtures: repositories: - 'stdlib': 'git://github.com/puppetlabs/puppetlabs-stdlib' - 'concat': 'git://github.com/puppetlabs/puppetlabs-concat' + stdlib: + repo: 'git://github.com/puppetlabs/puppetlabs-stdlib' + concat: + repo: 'git://github.com/puppetlabs/puppetlabs-concat' + ref: '1.2.1' symlinks: 'collectd': "#{source_dir}" diff --git a/module-collectd/.travis.yml b/module-collectd/.travis.yml index ba1771143..1d6ecb14d 100644 --- a/module-collectd/.travis.yml +++ b/module-collectd/.travis.yml @@ -14,5 +14,9 @@ matrix: env: PUPPET_GEM_VERSION="~> 3.5.0" STRICT_VARIABLES="yes" - rvm: 2.0.0 env: PUPPET_GEM_VERSION="~> 3.5.0" STRICT_VARIABLES="yes" + - rvm: 1.9.3 + env: PUPPET_GEM_VERSION="~> 3.7.5" STRICT_VARIABLES="yes" + - rvm: 2.0.0 + env: PUPPET_GEM_VERSION="~> 3.7.5" STRICT_VARIABLES="yes" notifications: email: false diff --git a/module-collectd/CHANGELOG.md b/module-collectd/CHANGELOG.md index eda6f6fb0..f2414f1bf 100644 --- a/module-collectd/CHANGELOG.md +++ b/module-collectd/CHANGELOG.md @@ -1,3 +1,20 @@ +## 2015-04-22 Release 3.3.0 + +### Backwards-incompatible changes: + +* Drop Ruby 1.8.7 support +* Package collectd-python is no longer available in EPEL + +### Features: + +* Allow disable forwarding in network::server + +### Bugs/Maint: + +* Fix permission on MySQL plugin file +* Only set LogSendErrors option if collectd version >= 5.4. +* CreateFiles/CreateFilesAsync expect boolean values + ## 2015-01-24 Release 3.2.0 ### Backwards-incompatible changes: diff --git a/module-collectd/Gemfile b/module-collectd/Gemfile index abcb4b54e..4d302c2c5 100644 --- a/module-collectd/Gemfile +++ b/module-collectd/Gemfile @@ -8,6 +8,7 @@ group :development, :unit_tests do gem 'simplecov', :require => false gem 'puppet_facts', :require => false gem 'json', :require => false + gem 'metadata-json-lint', :require => false end group :system_tests do diff --git a/module-collectd/Gemfile.lock b/module-collectd/Gemfile.lock index 3e406d83c..1a5005f05 100644 --- a/module-collectd/Gemfile.lock +++ b/module-collectd/Gemfile.lock @@ -1,30 +1,29 @@ GEM remote: https://rubygems.org/ specs: - CFPropertyList (2.2.8) - activesupport (4.2.0) + CFPropertyList (2.3.1) + activesupport (4.2.1) i18n (~> 0.7) json (~> 1.7, >= 1.7.7) minitest (~> 5.1) thread_safe (~> 0.3, >= 0.3.4) tzinfo (~> 1.1) - addressable (2.3.6) - archive-tar-minitar (0.5.2) + addressable (2.3.8) autoparse (0.3.3) addressable (>= 2.3.1) extlib (>= 0.9.15) multi_json (>= 1.0.0) - aws-sdk (1.60.2) - aws-sdk-v1 (= 1.60.2) - aws-sdk-v1 (1.60.2) + aws-sdk (1.64.0) + aws-sdk-v1 (= 1.64.0) + aws-sdk-v1 (1.64.0) json (~> 1.4) nokogiri (>= 1.4.4) - beaker (2.1.0) + beaker (2.10.0) aws-sdk (~> 1.57) docker-api fission (~> 0.4) fog (~> 1.25) - google-api-client (~> 0.7) + google-api-client (~> 0.8) hocon (~> 0.0.4) inifile (~> 2.0) json (~> 1.8) @@ -32,36 +31,40 @@ GEM net-scp (~> 1.2) net-ssh (~> 2.9) rbvmomi (~> 1.8) + rsync (~> 1.0.9) unf (~> 0.1) - beaker-rspec (4.0.0) + beaker-rspec (5.0.2) beaker (~> 2.0) rspec - serverspec (~> 1.0) - specinfra (~> 1.0) + serverspec (~> 2) + specinfra (~> 2) builder (3.2.2) diff-lcs (1.2.5) docile (1.1.5) - docker-api (1.17.0) - archive-tar-minitar + docker-api (1.21.1) excon (>= 0.38.0) json - excon (0.42.1) + excon (0.45.3) extlib (0.9.16) - facter (2.3.0) - CFPropertyList (~> 2.2.6) - faraday (0.9.0) + facter (1.7.6) + faraday (0.9.1) multipart-post (>= 1.2, < 3) fission (0.5.0) CFPropertyList (~> 2.2) - fog (1.26.0) + fog (1.29.0) fog-atmos + fog-aws (~> 0.0) fog-brightbox (~> 0.4) - fog-core (~> 1.27, >= 1.27.1) + fog-core (~> 1.27, >= 1.27.4) fog-ecloud fog-json + fog-local + fog-powerdns (>= 0.1.1) fog-profitbricks fog-radosgw (>= 0.0.2) + fog-riakcs fog-sakuracloud (>= 0.0.4) + fog-serverlove fog-softlayer fog-storm_on_demand fog-terremark @@ -73,102 +76,135 @@ GEM fog-atmos (0.1.0) fog-core fog-xml + fog-aws (0.1.2) + fog-core (~> 1.27) + fog-json (~> 1.0) + fog-xml (~> 0.1) + ipaddress (~> 0.8) fog-brightbox (0.7.1) fog-core (~> 1.22) fog-json inflecto (~> 0.0.2) - fog-core (1.27.2) + fog-core (1.30.0) builder - excon (~> 0.38) + excon (~> 0.45) formatador (~> 0.2) mime-types net-scp (~> 1.1) net-ssh (>= 2.1.3) - fog-ecloud (0.0.2) + fog-ecloud (0.1.1) fog-core fog-xml - fog-json (1.0.0) + fog-json (1.0.1) + fog-core (~> 1.0) multi_json (~> 1.0) - fog-profitbricks (0.0.1) + fog-local (0.2.1) + fog-core (~> 1.27) + fog-powerdns (0.1.1) + fog-core (~> 1.27) + fog-json (~> 1.0) + fog-xml (~> 0.1) + fog-profitbricks (0.0.2) fog-core fog-xml nokogiri - fog-radosgw (0.0.3) + fog-radosgw (0.0.4) fog-core (>= 1.21.0) fog-json fog-xml (>= 0.0.1) - fog-sakuracloud (0.1.1) + fog-riakcs (0.1.0) fog-core fog-json - fog-softlayer (0.3.26) + fog-xml + fog-sakuracloud (1.0.1) + fog-core + fog-json + fog-serverlove (0.1.2) fog-core fog-json - fog-storm_on_demand (0.1.0) + fog-softlayer (0.4.5) fog-core fog-json - fog-terremark (0.0.3) + fog-storm_on_demand (0.1.1) + fog-core + fog-json + fog-terremark (0.1.0) fog-core fog-xml - fog-vmfusion (0.0.1) + fog-vmfusion (0.1.0) fission fog-core - fog-voxel (0.0.2) + fog-voxel (0.1.0) fog-core fog-xml - fog-xml (0.1.1) + fog-xml (0.1.2) fog-core nokogiri (~> 1.5, >= 1.5.11) formatador (0.2.5) - google-api-client (0.8.1.1) + google-api-client (0.8.6) activesupport (>= 3.2) addressable (~> 2.3) autoparse (~> 0.3) extlib (~> 0.9) faraday (~> 0.9) + googleauth (~> 0.3) launchy (~> 2.4) multi_json (~> 1.10) retriable (~> 1.4) signet (~> 0.6) + googleauth (0.4.0) + faraday (~> 0.9) + jwt (~> 1.4) + logging (~> 1.8) + memoist (~> 0.11) + multi_json (= 1.11) + signet (~> 0.6) hiera (1.3.4) json_pure - highline (1.6.21) - hocon (0.0.6) + hocon (0.0.7) i18n (0.7.0) inflecto (0.0.2) inifile (2.0.2) ipaddress (0.8.0) - json (1.8.1) - json_pure (1.8.1) - jwt (1.2.0) + json (1.8.2) + json_pure (1.8.2) + jwt (1.4.1) launchy (2.4.3) addressable (~> 2.3) + little-plugger (1.1.3) + logging (1.8.2) + little-plugger (>= 1.1.3) + multi_json (>= 1.8.4) + memoist (0.12.0) metaclass (0.0.4) + metadata-json-lint (0.0.6) + json + spdx-licenses (~> 1.0) mime-types (2.4.3) - mini_portile (0.6.1) - minitest (5.5.0) + mini_portile (0.6.2) + minitest (5.6.0) mocha (1.1.0) metaclass (~> 0.0.1) - multi_json (1.10.1) + multi_json (1.11.0) multipart-post (2.0.0) net-scp (1.2.1) net-ssh (>= 2.6.5) - net-ssh (2.9.1) - nokogiri (1.6.5) + net-ssh (2.9.2) + nokogiri (1.6.6.2) mini_portile (~> 0.6.0) - puppet (3.7.3) + puppet (3.7.5) facter (> 1.6, < 3) hiera (~> 1.0) json_pure puppet-lint (1.1.0) - puppet-syntax (1.4.0) + puppet-syntax (2.0.0) rake puppet_facts (0.2.1) - puppetlabs_spec_helper (0.8.2) + puppetlabs_spec_helper (0.10.2) mocha puppet-lint puppet-syntax rake - rspec rspec-puppet rake (10.4.2) rbvmomi (1.8.2) @@ -176,44 +212,53 @@ GEM nokogiri (>= 1.4.1) trollop retriable (1.4.1) - rspec (2.99.0) - rspec-core (~> 2.99.0) - rspec-expectations (~> 2.99.0) - rspec-mocks (~> 2.99.0) - rspec-core (2.99.2) - rspec-expectations (2.99.2) - diff-lcs (>= 1.1.3, < 2.0) - rspec-its (1.0.1) - rspec-core (>= 2.99.0.beta1) - rspec-expectations (>= 2.99.0.beta1) - rspec-mocks (2.99.2) - rspec-puppet (1.0.1) + rspec (3.2.0) + rspec-core (~> 3.2.0) + rspec-expectations (~> 3.2.0) + rspec-mocks (~> 3.2.0) + rspec-core (3.2.3) + rspec-support (~> 3.2.0) + rspec-expectations (3.2.1) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.2.0) + rspec-its (1.2.0) + rspec-core (>= 3.0.0) + rspec-expectations (>= 3.0.0) + rspec-mocks (3.2.1) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.2.0) + rspec-puppet (2.1.0) rspec - serverspec (1.16.0) - highline - net-ssh - rspec (~> 2.99) + rspec-support (3.2.2) + rsync (1.0.9) + serverspec (2.14.1) + multi_json + rspec (~> 3.0) rspec-its - specinfra (~> 1.27) + specinfra (~> 2.25) signet (0.6.0) addressable (~> 2.3) extlib (~> 0.9) faraday (~> 0.9) jwt (~> 1.0) multi_json (~> 1.10) - simplecov (0.9.1) + simplecov (0.10.0) docile (~> 1.1.0) - multi_json (~> 1.0) - simplecov-html (~> 0.8.0) - simplecov-html (0.8.0) - specinfra (1.27.5) - thread_safe (0.3.4) - trollop (2.0) + json (~> 1.8) + simplecov-html (~> 0.10.0) + simplecov-html (0.10.0) + spdx-licenses (1.0.0) + json + specinfra (2.30.0) + net-scp + net-ssh + thread_safe (0.3.5) + trollop (2.1.2) tzinfo (1.2.2) thread_safe (~> 0.1) unf (0.1.4) unf_ext - unf_ext (0.0.6) + unf_ext (0.0.7.1) PLATFORMS ruby @@ -222,6 +267,7 @@ DEPENDENCIES beaker-rspec facter json + metadata-json-lint puppet puppet-lint puppet_facts diff --git a/module-collectd/metadata.json b/module-collectd/metadata.json index ad685f727..3c6355fc8 100644 --- a/module-collectd/metadata.json +++ b/module-collectd/metadata.json @@ -71,10 +71,10 @@ } ], "name": "pdxcat-collectd", - "version": "3.2.0", + "version": "3.3.0", "source": "https://github.com/pdxcat/puppet-module-collectd", "author": "Computer Action Team", - "license": "Apache Version 2.0", + "license": "Apache-2.0", "summary": "Puppet module for Collectd", "project_page": "https://github.com/pdxcat/puppet-module-collectd", "dependencies": [ diff --git a/module-collectd/spec/classes/collectd_init_spec.rb b/module-collectd/spec/classes/collectd_init_spec.rb index d266f0252..a3e98291d 100644 --- a/module-collectd/spec/classes/collectd_init_spec.rb +++ b/module-collectd/spec/classes/collectd_init_spec.rb @@ -30,7 +30,7 @@ end it 'should fail' do - expect { subject }.to raise_error(/foo is not supported/) + should compile.and_raise_error(/foo is not supported/) end end diff --git a/module-collectd/spec/classes/collectd_plugin_disk_spec.rb b/module-collectd/spec/classes/collectd_plugin_disk_spec.rb index 876522c64..d9d2089bb 100644 --- a/module-collectd/spec/classes/collectd_plugin_disk_spec.rb +++ b/module-collectd/spec/classes/collectd_plugin_disk_spec.rb @@ -35,7 +35,7 @@ {:disks => 'sda'} end it 'Will raise an error about :disks being a String' do - expect {should}.to raise_error(Puppet::Error,/String/) + should compile.and_raise_error(/String/) end end end diff --git a/module-collectd/spec/classes/collectd_plugin_filecount_spec.rb b/module-collectd/spec/classes/collectd_plugin_filecount_spec.rb index cc8ffe623..e60d27ea7 100644 --- a/module-collectd/spec/classes/collectd_plugin_filecount_spec.rb +++ b/module-collectd/spec/classes/collectd_plugin_filecount_spec.rb @@ -57,7 +57,7 @@ {:directories => '/var/spool/postfix/active'} end it 'Will raise an error about :directories being a String' do - expect {should}.to raise_error(Puppet::Error,/String/) + should compile.and_raise_error(/String/) end end end diff --git a/module-collectd/spec/classes/collectd_plugin_interface_spec.rb b/module-collectd/spec/classes/collectd_plugin_interface_spec.rb index 5cda3cd41..47b4533d5 100644 --- a/module-collectd/spec/classes/collectd_plugin_interface_spec.rb +++ b/module-collectd/spec/classes/collectd_plugin_interface_spec.rb @@ -35,7 +35,7 @@ {:interfaces => 'eth0'} end it 'Will raise an error about :interfaces being a String' do - expect {should}.to raise_error(Puppet::Error,/String/) + should compile.and_raise_error(/String/) end end end diff --git a/module-collectd/spec/classes/collectd_plugin_iptables_spec.rb b/module-collectd/spec/classes/collectd_plugin_iptables_spec.rb index a04b71a33..c6f854f1d 100644 --- a/module-collectd/spec/classes/collectd_plugin_iptables_spec.rb +++ b/module-collectd/spec/classes/collectd_plugin_iptables_spec.rb @@ -35,7 +35,7 @@ {:chains => ['nat','In_SSH']} end it 'Will raise an error about :chains being an Array' do - expect {should}.to raise_error(Puppet::Error,/Array/) + should compile.and_raise_error(/Array/) end end end diff --git a/module-collectd/spec/classes/collectd_plugin_irq_spec.rb b/module-collectd/spec/classes/collectd_plugin_irq_spec.rb index 2efb607f1..1f3f7f517 100644 --- a/module-collectd/spec/classes/collectd_plugin_irq_spec.rb +++ b/module-collectd/spec/classes/collectd_plugin_irq_spec.rb @@ -35,7 +35,7 @@ {:irqs => '90,91,92'} end it 'Will raise an error about :irqs being a String' do - expect {should}.to raise_error(Puppet::Error,/String/) + should compile.and_raise_error(/String/) end end end diff --git a/module-collectd/spec/classes/collectd_plugin_tcpconns_spec.rb b/module-collectd/spec/classes/collectd_plugin_tcpconns_spec.rb index 7b7b4e85d..db38c3052 100644 --- a/module-collectd/spec/classes/collectd_plugin_tcpconns_spec.rb +++ b/module-collectd/spec/classes/collectd_plugin_tcpconns_spec.rb @@ -48,7 +48,7 @@ {:localports => '22'} end it 'Will raise an error about :localports being a String' do - expect {should}.to raise_error(Puppet::Error,/String/) + should compile.and_raise_error(/String/) end end @@ -57,7 +57,7 @@ {:remoteports => '22'} end it 'Will raise an error about :remoteports being a String' do - expect {should}.to raise_error(Puppet::Error,/String/) + should compile.and_raise_error(/String/) end end end diff --git a/module-collectd/spec/classes/collectd_plugin_unixsock_spec.rb b/module-collectd/spec/classes/collectd_plugin_unixsock_spec.rb index 9fab9a231..8b5ff7fa5 100644 --- a/module-collectd/spec/classes/collectd_plugin_unixsock_spec.rb +++ b/module-collectd/spec/classes/collectd_plugin_unixsock_spec.rb @@ -32,7 +32,7 @@ {:socketfile => 'var/run/socket'} end it 'Will raise an error about :socketfile' do - expect {should}.to raise_error(Puppet::Error,/absolute path/) + should compile.and_raise_error(/absolute path/) end end end