Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge voxpupuli master #2

Merged
merged 60 commits into from
Apr 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
e0e8102
Add pcie_errors plugin
prabiegx Feb 7, 2020
720186a
Change all `port` parameters to use `Stdlib::Port`
alexjfisher Mar 2, 2019
d80f953
Added log parser manifest
MichalRebisz Feb 10, 2020
0e6afa0
log parser plugin template
MichalRebisz Feb 11, 2020
1719165
Added tests for log parser
Feb 12, 2020
2228727
added default config
MichalRebisz Feb 13, 2020
8cf801f
Added default config to log parser
Feb 14, 2020
a9e1d45
fixed lint issues
Feb 15, 2020
f36c06f
Add puppet string documentation
prabiegx Feb 17, 2020
2fb0e2d
Changed $source data type to enum
prabiegx Feb 18, 2020
b155eba
Fixed default config
MichalRebisz Feb 11, 2020
20a2f6e
Merge pull request #909 from MichalRebisz/mcelog_default_config
bastelfreak Feb 18, 2020
176618d
Merge pull request #911 from prabiegx/collectd_pcie_errors
bastelfreak Feb 18, 2020
006e7e2
Added snmp agent plugin
MichalRebisz Feb 3, 2020
6478341
Fixed empty line build issue
MichalRebisz Feb 20, 2020
fa5cc75
Add dcpmm plugin
prabiegx Feb 20, 2020
1293661
Merge pull request #914 from prabiegx/collectd_dcpmm
bastelfreak Feb 24, 2020
974a4c3
Merge pull request #910 from MichalRebisz/snmp_agent
bastelfreak Feb 24, 2020
478af93
modulesync 2.12.0
bastelfreak Feb 24, 2020
fbb0c4b
Merge pull request #915 from voxpupuli/modulesync
bastelfreak Feb 24, 2020
9f61324
release 11.2.0
bastelfreak Feb 24, 2020
51ea4a1
Add dpdk_telemetry plugin
prabiegx Feb 7, 2020
cb6b013
Merge pull request #916 from bastelfreak/rel1120
bastelfreak Feb 25, 2020
35b7811
[blacksmith] Bump version to 11.2.1-rc0
bastelfreak Feb 25, 2020
6d74352
Merge pull request #913 from prabiegx/collectd_dpdk_telemetry
bastelfreak Mar 4, 2020
3f479c1
Added test for checking file is correct
MichalRebisz Mar 5, 2020
63f9ea2
Require puppet-epel over stahnma-epel
traylenator Mar 9, 2020
c25073e
Merge pull request #918 from traylenator/newepel
alexjfisher Mar 9, 2020
6724520
Add CentOS 8 support
traylenator Mar 6, 2020
eb8cfee
Merge pull request #917 from traylenator/eight
traylenator Mar 10, 2020
d4d70dd
New utils parameter to install collectdctl
traylenator Mar 10, 2020
d4b8f5f
Merge pull request #919 from traylenator/utils
bastelfreak Mar 10, 2020
3405355
write_http expected to be own package on CentOS 8
traylenator Mar 10, 2020
07a5277
Merge pull request #920 from traylenator/disks
bastelfreak Mar 14, 2020
9a159ba
Release 11.3.0
traylenator Mar 19, 2020
5ef854b
Merge pull request #922 from traylenator/rel/12.0.0
bastelfreak Mar 19, 2020
26e4cb2
[blacksmith] Bump version to 11.3.1-rc0
bastelfreak Mar 19, 2020
d45621c
Ignore more installed versions of python during tests
traylenator Mar 20, 2020
8c0e6a0
Merge pull request #923 from traylenator/pytests
bastelfreak Mar 20, 2020
bb889ed
Skip Load:ReportRelative is problematic for collectd9
traylenator Mar 20, 2020
940a7ad
Merge pull request #924 from traylenator/fix901_again
bastelfreak Mar 21, 2020
f1d7ee5
Create processess plugin type configuration on RedHat
traylenator Mar 23, 2020
2acec30
Merge pull request #912 from MichalRebisz/log_parser
bastelfreak Mar 28, 2020
7267a20
Merge pull request #927 from traylenator/processes
bastelfreak Mar 28, 2020
9216358
Release 11.4.0
bastelfreak Mar 28, 2020
59b3c54
Merge pull request #928 from bastelfreak/rel1140
bastelfreak Mar 29, 2020
b2f7e70
[blacksmith] Bump version to 11.4.1-rc0
bastelfreak Mar 29, 2020
ca6336a
Install disk package if required prior CentOS 8
NikolayTsvetkov Mar 31, 2020
f4a6fa8
Remove trailing whitespace
NikolayTsvetkov Apr 1, 2020
b6f6b8c
rename log_parser to logparser
prabiegx Apr 1, 2020
dd541aa
Merge pull request #929 from NikolayTsvetkov/patch-1
bastelfreak Apr 4, 2020
d0fcd39
Merge pull request #930 from prabiegx/logparser
bastelfreak Apr 4, 2020
d7b79c5
Merge pull request #906 from bastelfreak/stdlib_port
bastelfreak Apr 4, 2020
2db37aa
modulesync 2.12.0
bastelfreak Apr 4, 2020
4ab1a66
Merge pull request #931 from voxpupuli/modulesync
bastelfreak Apr 4, 2020
913556f
release 12.0.0
bastelfreak Apr 4, 2020
4686e16
Merge pull request #932 from bastelfreak/rel1200
bastelfreak Apr 4, 2020
a556938
[blacksmith] Bump version to 12.0.1-rc0
bastelfreak Apr 4, 2020
ea4927b
Use voxpupuli-acceptance
ekohl Apr 6, 2020
529dab5
Merge pull request #934 from voxpupuli/rewrite-acceptance-tests
bastelfreak Apr 7, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ fixtures:
apt: https://github.com/puppetlabs/puppetlabs-apt.git
stdlib: https://github.com/puppetlabs/puppetlabs-stdlib.git
concat: https://github.com/puppetlabs/puppetlabs-concat.git
epel: https://github.com/stahnma/puppet-module-epel.git
epel: https://github.com/voxpupuli/puppet-epel.git
yumrepo_core:
repo: https://github.com/puppetlabs/puppetlabs-yumrepo_core.git
puppet_version: ">= 6.0.0"
2 changes: 1 addition & 1 deletion .msync.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
modulesync_config_version: '2.10.1'
modulesync_config_version: '2.12.0'
3 changes: 3 additions & 0 deletions .sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
- set: ubuntu1604-64
- set: ubuntu1804-64
- set: centos7-64
- set: centos8-64
- set: debian8-64
secure: "FAK3Izs5bSZyblGvcFnGWm0exZV5+v9pbwfRDD2oihWxX3U3pArGW+3XcwcJfLQgrUYBsOTmHC8yPjlgTBYeIt/5pvg9X+3jwNgeto6kozpI/nvAq4NtcHhzxRejuPELhFYeXZ3hEw0w+v/ZRo2cNLwI0LLpiWEDvCMZN1CJ2RY="
spec/spec_helper.rb:
spec_overrides: "require 'spec_helper_methods'"
mock_with: ':mocha'
spec/spec_helper_acceptance.rb:
unmanaged: false
24 changes: 16 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,35 +24,43 @@ matrix:
env: PUPPET_VERSION="~> 5.0" CHECK=build DEPLOY_TO_FORGE=yes
- rvm: 2.5.3
bundler_args: --without development release
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=ubuntu1604-64 BEAKER_HYPERVISOR=docker CHECK=beaker
env: BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_setfile=ubuntu1604-64 CHECK=beaker
services: docker
- rvm: 2.5.3
bundler_args: --without development release
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_debug=true BEAKER_setfile=ubuntu1604-64 BEAKER_HYPERVISOR=docker CHECK=beaker
env: BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_setfile=ubuntu1604-64 CHECK=beaker
services: docker
- rvm: 2.5.3
bundler_args: --without development release
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=ubuntu1804-64 BEAKER_HYPERVISOR=docker CHECK=beaker
env: BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_setfile=ubuntu1804-64 CHECK=beaker
services: docker
- rvm: 2.5.3
bundler_args: --without development release
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_debug=true BEAKER_setfile=ubuntu1804-64 BEAKER_HYPERVISOR=docker CHECK=beaker
env: BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_setfile=ubuntu1804-64 CHECK=beaker
services: docker
- rvm: 2.5.3
bundler_args: --without development release
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=centos7-64 BEAKER_HYPERVISOR=docker CHECK=beaker
env: BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_setfile=centos7-64 CHECK=beaker
services: docker
- rvm: 2.5.3
bundler_args: --without development release
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_debug=true BEAKER_setfile=centos7-64 BEAKER_HYPERVISOR=docker CHECK=beaker
env: BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_setfile=centos7-64 CHECK=beaker
services: docker
- rvm: 2.5.3
bundler_args: --without development release
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=debian8-64 BEAKER_HYPERVISOR=docker CHECK=beaker
env: BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_setfile=centos8-64 CHECK=beaker
services: docker
- rvm: 2.5.3
bundler_args: --without development release
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_debug=true BEAKER_setfile=debian8-64 BEAKER_HYPERVISOR=docker CHECK=beaker
env: BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_setfile=centos8-64 CHECK=beaker
services: docker
- rvm: 2.5.3
bundler_args: --without development release
env: BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_setfile=debian8-64 CHECK=beaker
services: docker
- rvm: 2.5.3
bundler_args: --without development release
env: BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_setfile=debian8-64 CHECK=beaker
services: docker
branches:
only:
Expand Down
61 changes: 61 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,67 @@ All notable changes to this project will be documented in this file.
Each new release typically also includes the latest modulesync defaults.
These should not affect the functionality of the module.

## [v12.0.0](https://github.com/voxpupuli/puppet-collectd/tree/v12.0.0) (2020-04-04)

[Full Changelog](https://github.com/voxpupuli/puppet-collectd/compare/v11.4.0...v12.0.0)

**Breaking changes:**

- \[collectd\] rename log\_parser to logparser [\#930](https://github.com/voxpupuli/puppet-collectd/pull/930) ([prabiegx](https://github.com/prabiegx))
- Change all `port` parameters to use `Stdlib::Port` [\#906](https://github.com/voxpupuli/puppet-collectd/pull/906) ([bastelfreak](https://github.com/bastelfreak))

**Fixed bugs:**

- Install disk package if required prior CentOS 8 [\#929](https://github.com/voxpupuli/puppet-collectd/pull/929) ([NikolayTsvetkov](https://github.com/NikolayTsvetkov))

## [v11.4.0](https://github.com/voxpupuli/puppet-collectd/tree/v11.4.0) (2020-03-29)

[Full Changelog](https://github.com/voxpupuli/puppet-collectd/compare/v11.3.0...v11.4.0)

**Implemented enhancements:**

- Add Plugin Log parser [\#912](https://github.com/voxpupuli/puppet-collectd/pull/912) ([MichalRebisz](https://github.com/MichalRebisz))

**Fixed bugs:**

- processes-config.conf file is not created [\#926](https://github.com/voxpupuli/puppet-collectd/issues/926)
- Create processes plugin configuration on RedHat [\#927](https://github.com/voxpupuli/puppet-collectd/pull/927) ([traylenator](https://github.com/traylenator))
- Skip Load:ReportRelative as problematic for collectd 5.9.0 [\#924](https://github.com/voxpupuli/puppet-collectd/pull/924) ([traylenator](https://github.com/traylenator))
- Ignore more installed versions of python during tests [\#923](https://github.com/voxpupuli/puppet-collectd/pull/923) ([traylenator](https://github.com/traylenator))

## [v11.3.0](https://github.com/voxpupuli/puppet-collectd/tree/v11.3.0) (2020-03-19)

[Full Changelog](https://github.com/voxpupuli/puppet-collectd/compare/v11.2.0...v11.3.0)

**Implemented enhancements:**

- New utils parameter to install collectdctl [\#919](https://github.com/voxpupuli/puppet-collectd/pull/919) ([traylenator](https://github.com/traylenator))
- Require puppet-epel over stahnma-epel [\#918](https://github.com/voxpupuli/puppet-collectd/pull/918) ([traylenator](https://github.com/traylenator))
- Add CentOS 8 support [\#917](https://github.com/voxpupuli/puppet-collectd/pull/917) ([traylenator](https://github.com/traylenator))
- Add dpdk\_telemetry plugin [\#913](https://github.com/voxpupuli/puppet-collectd/pull/913) ([prabiegx](https://github.com/prabiegx))

**Fixed bugs:**

- write\_http/disk is own sub package on CentOS 8 [\#920](https://github.com/voxpupuli/puppet-collectd/pull/920) ([traylenator](https://github.com/traylenator))

**Closed issues:**

- Time for a new version ? [\#684](https://github.com/voxpupuli/puppet-collectd/issues/684)

## [v11.2.0](https://github.com/voxpupuli/puppet-collectd/tree/v11.2.0) (2020-02-25)

[Full Changelog](https://github.com/voxpupuli/puppet-collectd/compare/v11.1.0...v11.2.0)

**Implemented enhancements:**

- Add dcpmm plugin [\#914](https://github.com/voxpupuli/puppet-collectd/pull/914) ([prabiegx](https://github.com/prabiegx))
- Add pcie\_errors plugin [\#911](https://github.com/voxpupuli/puppet-collectd/pull/911) ([prabiegx](https://github.com/prabiegx))
- Add SNMP agent plugin [\#910](https://github.com/voxpupuli/puppet-collectd/pull/910) ([MichalRebisz](https://github.com/MichalRebisz))

**Merged pull requests:**

- Plugin Mcelog default config [\#909](https://github.com/voxpupuli/puppet-collectd/pull/909) ([MichalRebisz](https://github.com/MichalRebisz))

## [v11.1.0](https://github.com/voxpupuli/puppet-collectd/tree/v11.1.0) (2020-02-08)

[Full Changelog](https://github.com/voxpupuli/puppet-collectd/compare/v11.0.0...v11.1.0)
Expand Down
46 changes: 4 additions & 42 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,9 @@ def location_for(place, fake_version = nil)
end

group :test do
gem 'puppetlabs_spec_helper', '>= 2.14.0', :require => false
gem 'rspec-puppet-facts', '>= 1.9.5', :require => false
gem 'rspec-puppet-utils', :require => false
gem 'puppet-lint-leading_zero-check', :require => false
gem 'puppet-lint-trailing_comma-check', :require => false
gem 'puppet-lint-version_comparison-check', :require => false
gem 'puppet-lint-classes_and_types_beginning_with_digits-check', :require => false
gem 'puppet-lint-unquoted_string-check', :require => false
gem 'puppet-lint-variable_contains_upcase', :require => false
gem 'puppet-lint-absolute_classname-check', '>= 2.0.0', :require => false
gem 'puppet-lint-topscope-variable-check', :require => false
gem 'puppet-lint-legacy_facts-check', :require => false
gem 'puppet-lint-anchor-check', :require => false
gem 'metadata-json-lint', :require => false
gem 'redcarpet', :require => false
gem 'rubocop', '~> 0.49.1', :require => false
gem 'rubocop-rspec', '~> 1.15.0', :require => false
gem 'mocha', '~> 1.4.0', :require => false
gem 'coveralls', :require => false
gem 'simplecov-console', :require => false
gem 'parallel_tests', :require => false
gem 'voxpupuli-test', '>= 1.0.0', :require => false
gem 'coveralls', :require => false
gem 'simplecov-console', :require => false
end

group :development do
Expand All @@ -42,27 +24,7 @@ group :development do
end

group :system_tests do
gem 'winrm', :require => false
if beaker_version = ENV['BEAKER_VERSION']
gem 'beaker', *location_for(beaker_version)
else
gem 'beaker', '>= 4.2.0', :require => false
end
if beaker_rspec_version = ENV['BEAKER_RSPEC_VERSION']
gem 'beaker-rspec', *location_for(beaker_rspec_version)
else
gem 'beaker-rspec', :require => false
end
gem 'serverspec', :require => false
gem 'beaker-hostgenerator', '>= 1.1.22', :require => false
gem 'beaker-docker', :require => false
gem 'beaker-puppet', :require => false
gem 'beaker-puppet_install_helper', :require => false
gem 'beaker-module_install_helper', :require => false
gem 'rbnacl', '>= 4', :require => false
gem 'rbnacl-libsodium', :require => false
gem 'bcrypt_pbkdf', :require => false
gem 'ed25519', :require => false
gem 'voxpupuli-acceptance', :require => false
end

group :release do
Expand Down
69 changes: 69 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ documentation for each plugin for configurable attributes.
* `df` (see [collectd::plugin::df](#class-collectdplugindf) below)
* `disk` (see [collectd::plugin::disk](#class-collectdplugindisk) below)
* `dns` (see [collectd::plugin::dns](#class-collectdplugindns) below)
* `dcpmm` (see [collectd::plugin::dcpmm](#class-collectdplugindcpmm) below)
* `dpdk_telemetry` (see [collectd::plugin::dpdk_telemetry](#class-collectdplugindpdk_telemetry) below)
* `entropy` (see [collectd::plugin::entropy](#class-collectdpluginentropy) below)
* `exec` (see [collectd::plugin::exec](#class-collectdpluginexec) below)
* `ethstat` (see [collectd::plugin::ethstat](#class-collectdpluginethstat) below)
Expand Down Expand Up @@ -160,6 +162,7 @@ documentation for each plugin for configurable attributes.
* `nut` (see [collectd::plugin::nut](#class-collectdpluginnut) below)
* `openldap` (see [collectd::plugin::openldap](#class-collectdpluginopenldap) below)
* `openvpn` (see [collectd::plugin::openvpn](#class-collectdpluginopenvpn) below)
* `pcie_errors` (see [collectd::plugin::pcie_errors](#class-collectdpluginpcie_errors) below)
* `perl` (see [collectd::plugin::perl](#class-collectdpluginperl) below)
* `ping` (see [collectd::plugin::ping](#class-collectdpluginping) below)
* `postgresql` (see [collectd::plugin::postgresql](#class-collectdpluginpostgresql)
Expand All @@ -176,6 +179,7 @@ documentation for each plugin for configurable attributes.
* `sensors` (see [collectd::plugin::sensors](#class-collectdpluginsensors) below)
* `smart` (see [collectd::plugin::smart](#class-collectdpluginsmart) below)
* `snmp` (see [collectd::plugin::snmp](#class-collectdpluginsnmp) below)
* `snmp_agent` (see [collectd::plugin::snmp_agent](#class-collectdpluginsnmpagent) below)
* `statsd` (see [collectd::plugin::statsd](#class-collectdpluginstatsd) below)
* `swap` (see [collectd::plugin::swap](#class-collectdpluginswap) below)
* `syslog` (see [collectd::plugin::syslog](#class-collectdpluginsyslog) below)
Expand Down Expand Up @@ -582,6 +586,26 @@ Boolean for SelectNumericQueryTypes configuration option.

- *Default*: true

#### Class: `collectd::plugin::dpdk_telemetry`

```puppet
class { 'collectd::plugin::dpdk_telemetry':
client_socket_path => '/var/run/.client',
dpdk_socket_path => '/var/run/dpdk/rte/telemetry',
}
```

#### Class: `collectd::plugin::dcpmm`

```puppet
class { 'collectd::plugin::dcpmm':
interval => 10.0,
collect_health => false,
collect_perf_metrics => true,
enable_dispatch_all => false,
}
```

#### Class: `collectd::plugin::entropy`

```puppet
Expand Down Expand Up @@ -1245,6 +1269,17 @@ class { 'collectd::plugin::openvpn':
}
```

#### Class: `collectd::plugin::pcie_errors`

```puppet
class { 'collectd::plugin::pcie_errors':
source => undef,
access_dir => undef,
report_masked => false,
persistent_notifications => false,
}
```

#### Class: `collectd::plugin::perl`

This class has no parameters and will load the actual perl plugin.
Expand Down Expand Up @@ -1587,6 +1622,8 @@ You will need to add this to [collectd::config::typesdb](https://github.com/voxp
via hiera or in a manifest. Failure to set the types.db.custom content will
result in *no* metrics from the rabbitmq plugin.

The rabbitmq plugin has not been ported to python3 and will fail on CentOS 8 [#75](https://github.com/nytimes/collectd-rabbitmq/issues/75)

set typesdb to include the collectd-rabbitmq types.db.custom

```yaml
Expand Down Expand Up @@ -1702,7 +1739,39 @@ class { 'collectd::plugin::snmp':
},
}
```
#### Class: `collectd::plugin::snmp_agent`

```puppet
class {'collectd::plugin::snmp_agent':
table => {
ifTable => {
'indexoid' => 'IF-MIB::ifIndex',
'sizeoid' => 'IF-MIB::ifNumber',
data => [{
ifDescr => {
'plugin' => 'interface',
'oids' => 'IF-MIB::ifDescr'
},
'ifDescr2' => {
'plugin' => 'interface2',
'oids' => 'IF-MIB::ifDescr2'
}
}]
}
},
data => {
memAvailReal => {
'plugin' => 'memory',
'type' => 'memory',
'oids' => '1.3.6.1.4.1.2021.4.6.0',
'typeinstance' => 'free',
'indexkey' => {
'source' => 'PluginInstance'
}
}
}
}
```
#### Class: `collectd::plugin::statsd`

```puppet
Expand Down
33 changes: 1 addition & 32 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'puppetlabs_spec_helper/rake_tasks'
require 'voxpupuli/test/rake'

# load optional tasks for releases
# only available if gem group releases is installed
Expand All @@ -7,37 +7,6 @@ begin
rescue LoadError
end

PuppetLint.configuration.log_format = '%{path}:%{line}:%{check}:%{KIND}:%{message}'

desc 'Auto-correct puppet-lint offenses'
task 'lint:auto_correct' do
Rake::Task[:lint_fix].invoke
end

desc 'Run acceptance tests'
RSpec::Core::RakeTask.new(:acceptance) do |t|
t.pattern = 'spec/acceptance'
end

desc 'Run tests'
task test: [:release_checks]

namespace :check do
desc 'Check for trailing whitespace'
task :trailing_whitespace do
Dir.glob('**/*.md', File::FNM_DOTMATCH).sort.each do |filename|
next if filename =~ %r{^((modules|acceptance|\.?vendor|spec/fixtures|pkg)/|REFERENCE.md)}
File.foreach(filename).each_with_index do |line, index|
if line =~ %r{\s\n$}
puts "#{filename} has trailing whitespace on line #{index + 1}"
exit 1
end
end
end
end
end
Rake::Task[:release_checks].enhance ['check:trailing_whitespace']

desc "Run main 'test' task and report merged results to coveralls"
task test_with_coveralls: [:test] do
if Dir.exist?(File.expand_path('../lib', __FILE__))
Expand Down
2 changes: 2 additions & 0 deletions lib/facter/python_dir.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
else
Facter::Util::Resolution.exec('python3 -c "import site; print(site.getsitepackages()[0])"')
end
elsif File.exist?('/usr/libexec/platform-python')
Facter::Util::Resolution.exec('/usr/libexec/platform-python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"')
else
''
end
Expand Down
7 changes: 7 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# @summary installs and configures collectd
# @example Install collectd utilities
# class{'collectd':
# utils => true,
# }
#
# @param utils Install collectd utilities package containing collectdctl, collectd-nagios
class collectd (
Boolean $autoloadplugin = $collectd::params::autoloadplugin,
String $collectd_hostname = $collectd::params::collectd_hostname,
Expand Down Expand Up @@ -36,6 +42,7 @@
Optional[Integer] $write_queue_limit_high = $collectd::params::write_queue_limit_high,
Optional[Integer] $write_queue_limit_low = $collectd::params::write_queue_limit_low,
Integer[1] $write_threads = $collectd::params::write_threads,
Boolean $utils = $collectd::params::utils,
) inherits collectd::params {

$collectd_version_real = pick_default($facts['collectd_version'], $minimum_version)
Expand Down
Loading