Showing with 3,208 additions and 1,095 deletions.
  1. +3 −4 .github/CONTRIBUTING.md
  2. +6 −4 .github/workflows/ci.yml
  3. +10 −22 .github/workflows/release.yml
  4. +1 −1 .msync.yml
  5. +3 −0 .puppet-lint.rc
  6. +2 −0 .sync.yml
  7. +30 −0 CHANGELOG.md
  8. +1 −1 Dockerfile
  9. +3 −3 Gemfile
  10. +1,291 −75 REFERENCE.md
  11. +1 −1 Rakefile
  12. +27 −19 manifests/alertmanager.pp
  13. +29 −21 manifests/apache_exporter.pp
  14. +27 −19 manifests/beanstalkd_exporter.pp
  15. +37 −29 manifests/bind_exporter.pp
  16. +39 −31 manifests/bird_exporter.pp
  17. +29 −21 manifests/blackbox_exporter.pp
  18. +26 −18 manifests/collectd_exporter.pp
  19. +27 −19 manifests/consul_exporter.pp
  20. +38 −28 manifests/daemon.pp
  21. +39 −31 manifests/dellhw_exporter.pp
  22. +27 −19 manifests/elasticsearch_exporter.pp
  23. +26 −18 manifests/graphite_exporter.pp
  24. +29 −21 manifests/grok_exporter.pp
  25. +27 −19 manifests/haproxy_exporter.pp
  26. +6 −0 manifests/init.pp
  27. +42 −34 manifests/ipmi_exporter.pp
  28. +36 −28 manifests/ipsec_exporter.pp
  29. +37 −29 manifests/memcached_exporter.pp
  30. +27 −19 manifests/mesos_exporter.pp
  31. +38 −30 manifests/mongodb_exporter.pp
  32. +34 −26 manifests/mysqld_exporter.pp
  33. +42 −34 manifests/nginx_prometheus_exporter.pp
  34. +27 −19 manifests/nginx_vts_exporter.pp
  35. +123 −32 manifests/node_exporter.pp
  36. +60 −30 manifests/openldap_exporter.pp
  37. +38 −30 manifests/openvpn_exporter.pp
  38. +167 −0 manifests/php_fpm_exporter.pp
  39. +13 −5 manifests/postfix_exporter.pp
  40. +31 −23 manifests/postgres_exporter.pp
  41. +31 −23 manifests/process_exporter.pp
  42. +38 −30 manifests/puppetdb_exporter.pp
  43. +22 −14 manifests/pushgateway.pp
  44. +25 −17 manifests/pushprox_client.pp
  45. +24 −16 manifests/pushprox_proxy.pp
  46. +28 −20 manifests/rabbitmq_exporter.pp
  47. +29 −21 manifests/redis_exporter.pp
  48. +39 −31 manifests/sachet.pp
  49. +2 −2 manifests/server.pp
  50. +28 −20 manifests/snmp_exporter.pp
  51. +40 −32 manifests/ssh_exporter.pp
  52. +40 −32 manifests/ssl_exporter.pp
  53. +28 −20 manifests/statsd_exporter.pp
  54. +37 −29 manifests/unbound_exporter.pp
  55. +27 −19 manifests/varnish_exporter.pp
  56. +3 −2 metadata.json
  57. +23 −0 scripts/start-squid.sh
  58. +18 −0 spec/acceptance/node_exporter_spec.rb
  59. +15 −0 spec/acceptance/openldap_exporter_spec.rb
  60. +33 −0 spec/acceptance/php_fpm_exporter_spec.rb
  61. +34 −4 spec/classes/node_exporter_spec.rb
  62. +15 −0 spec/classes/openldap_exporter_spec.rb
  63. +87 −0 spec/classes/php_fpm_exporter_spec.rb
  64. +32 −0 spec/classes/server_spec.rb
  65. +11 −0 spec/setup_acceptance_node.pp
7 changes: 3 additions & 4 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ If you have Ruby 2.x or want a specific version of Puppet,
you must set an environment variable such as:

```sh
export PUPPET_VERSION="~> 5.5.6"
export PUPPET_GEM_VERSION="~> 6.1.0"
```

You can install all needed gems for spec tests into the modules directory by
Expand Down Expand Up @@ -232,17 +232,16 @@ simple tests against it after applying the module. You can run this
with:

```sh
BEAKER_setfile=debian10-x64 bundle exec rake beaker
BEAKER_setfile=debian11-64 bundle exec rake beaker
```

You can replace the string `debian10` with any common operating system.
The following strings are known to work:

* ubuntu1604
* ubuntu1804
* ubuntu2004
* debian9
* debian10
* debian11
* centos7
* centos8

Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
---
# Managed by modulesync - DO NOT EDIT
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/

name: CI

on: pull_request

concurrency:
group: ${{ github.head_ref }}
group: ${{ github.ref_name }}
cancel-in-progress: true

jobs:
Expand Down Expand Up @@ -74,11 +71,16 @@ jobs:
with:
ruby-version: '3.0'
bundler-cache: true
- name: Start squid
run: ./scripts/start-squid.sh
- name: Run tests
run: bundle exec rake beaker
env:
BEAKER_PUPPET_COLLECTION: ${{ matrix.puppet.collection }}
BEAKER_setfile: ${{ matrix.setfile.value }}
- name: squid logs
run: docker logs squid --tail 50
if: always()

tests:
needs:
Expand Down
32 changes: 10 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,14 @@ on:
tags:
- '*'

env:
BUNDLE_WITHOUT: development:test:system_tests

jobs:
deploy:
name: 'deploy to forge'
runs-on: ubuntu-latest
if: github.repository_owner == 'voxpupuli'
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true
- name: Build and Deploy
env:
# Configure secrets here:
# https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets
BLACKSMITH_FORGE_USERNAME: '${{ secrets.PUPPET_FORGE_USERNAME }}'
BLACKSMITH_FORGE_API_KEY: '${{ secrets.PUPPET_FORGE_API_KEY }}'
run: bundle exec rake module:push
release:
name: Release
uses: voxpupuli/gha-puppet/.github/workflows/release.yml@v1
with:
allowed_owner: 'voxpupuli'
secrets:
# Configure secrets here:
# https://docs.github.com/en/actions/security-guides/encrypted-secrets
username: ${{ secrets.PUPPET_FORGE_USERNAME }}
api_key: ${{ secrets.PUPPET_FORGE_API_KEY }}
2 changes: 1 addition & 1 deletion .msync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# Managed by modulesync - DO NOT EDIT
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/

modulesync_config_version: '5.0.1'
modulesync_config_version: '5.3.0'
3 changes: 3 additions & 0 deletions .puppet-lint.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--fail-on-warnings
--no-parameter_documentation-check
--no-parameter_types-check
2 changes: 2 additions & 0 deletions .sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ spec/spec_helper.rb:
spec_overrides: "require 'spec_helper_methods'"
spec/spec_helper_acceptance.rb:
unmanaged: false
.github/workflows/ci.yml:
unmanaged: true
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,36 @@ 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.4.0](https://github.com/voxpupuli/puppet-prometheus/tree/v12.4.0) (2022-06-03)

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

**Implemented enhancements:**

- Adding a Proxy option [\#186](https://github.com/voxpupuli/puppet-prometheus/issues/186)
- Implement web-config.yml handling [\#622](https://github.com/voxpupuli/puppet-prometheus/pull/622) ([rwaffen](https://github.com/rwaffen))
- Support new download format for openldap\_exporter [\#619](https://github.com/voxpupuli/puppet-prometheus/pull/619) ([treydock](https://github.com/treydock))
- Add php-fpm exporter [\#605](https://github.com/voxpupuli/puppet-prometheus/pull/605) ([kubicgruenfeld](https://github.com/kubicgruenfeld))
- Add Debian 11 support [\#601](https://github.com/voxpupuli/puppet-prometheus/pull/601) ([towo](https://github.com/towo))
- Allow to set storage parameters to false [\#598](https://github.com/voxpupuli/puppet-prometheus/pull/598) ([kubicgruenfeld](https://github.com/kubicgruenfeld))
- \(\#186\) Add proxy parameters [\#596](https://github.com/voxpupuli/puppet-prometheus/pull/596) ([ShaunMaxwell](https://github.com/ShaunMaxwell))

**Fixed bugs:**

- make process exporter service name propagate correctly [\#617](https://github.com/voxpupuli/puppet-prometheus/pull/617) ([anarcat](https://github.com/anarcat))

**Closed issues:**

- We should be able to download from custom url with credentials [\#603](https://github.com/voxpupuli/puppet-prometheus/issues/603)
- Prometheus Agent mode not supported yet [\#597](https://github.com/voxpupuli/puppet-prometheus/issues/597)
- Support for node exporter 1.x [\#520](https://github.com/voxpupuli/puppet-prometheus/issues/520)

**Merged pull requests:**

- Update ipmi\_exporter URL, project moved [\#620](https://github.com/voxpupuli/puppet-prometheus/pull/620) ([treydock](https://github.com/treydock))
- extra\_options: Switch from String to Optional\[String\[1\]\] [\#610](https://github.com/voxpupuli/puppet-prometheus/pull/610) ([bastelfreak](https://github.com/bastelfreak))
- Beaker: Install lsb-release during CI [\#609](https://github.com/voxpupuli/puppet-prometheus/pull/609) ([bastelfreak](https://github.com/bastelfreak))

## [v12.3.0](https://github.com/voxpupuli/puppet-prometheus/tree/v12.3.0) (2021-11-17)

[Full Changelog](https://github.com/voxpupuli/puppet-prometheus/compare/v12.2.0...v12.3.0)
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WORKDIR /opt/puppet
# https://github.com/puppetlabs/puppet/blob/06ad255754a38f22fb3a22c7c4f1e2ce453d01cb/lib/puppet/provider/service/runit.rb#L39
RUN mkdir -p /etc/sv

ARG PUPPET_VERSION="~> 6.0"
ARG PUPPET_GEM_VERSION="~> 6.0"
ARG PARALLEL_TEST_PROCESSORS=4

# Cache gems
Expand Down
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Managed by modulesync - DO NOT EDIT
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/

source ENV['GEM_SOURCE'] || "https://rubygems.org"
source ENV['GEM_SOURCE'] || 'https://rubygems.org'

group :test do
gem 'voxpupuli-test', '~> 4.0', :require => false
gem 'voxpupuli-test', '~> 5.4', :require => false
gem 'coveralls', :require => false
gem 'simplecov-console', :require => false
gem 'puppet_metadata', '~> 1.0', :require => false
Expand All @@ -28,7 +28,7 @@ end
gem 'rake', :require => false
gem 'facter', ENV['FACTER_GEM_VERSION'], :require => false, :groups => [:test]

puppetversion = ENV['PUPPET_VERSION'] || '>= 6.0'
puppetversion = ENV['PUPPET_GEM_VERSION'] || '>= 6.0'
gem 'puppet', puppetversion, :require => false, :groups => [:test]

# vim: syntax=ruby
Loading