Skip to content

Commit

Permalink
Merge pull request #513 from bastelfreak/exporter
Browse files Browse the repository at this point in the history
puppetdb_exporter: Update 1.0.0->1.1.0
  • Loading branch information
bastelfreak authored Dec 7, 2020
2 parents fde52c9 + f2935aa commit f5ef1b8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5950,7 +5950,7 @@ Data type: `String[1]`

The binary release version

Default value: `'1.0.0'`
Default value: `'1.1.0'`

##### `puppetdb_url`

Expand Down
2 changes: 1 addition & 1 deletion manifests/puppetdb_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
String[1] $package_ensure = 'present',
String[1] $package_name = 'puppetdb_exporter',
String[1] $user = 'puppetdb-exporter',
String[1] $version = '1.0.0',
String[1] $version = '1.1.0',
Boolean $purge_config_dir = true,
Boolean $restart_on_change = true,
Boolean $service_enable = true,
Expand Down
9 changes: 5 additions & 4 deletions spec/classes/puppetdb_exporter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,19 @@
if facts[:os]['name'] == 'Archlinux'
it { is_expected.to contain_package('puppetdb_exporter') }
it { is_expected.not_to contain_file('/usr/local/bin/puppetdb_exporter') }
it { is_expected.not_to contain_archive('/tmp/puppetdb_exporter-1.0.0.tar.gz') }
it { is_expected.not_to contain_archive('/tmp/puppetdb_exporter-1.1.0.tar.gz') }
else
it { is_expected.to contain_archive('/tmp/puppetdb_exporter-1.0.0.tar.gz') }
it { is_expected.to contain_file('/usr/local/bin/puppetdb_exporter').with('target' => '/opt/prometheus-puppetdb-exporter-1.0.0.linux-amd64/prometheus-puppetdb-exporter') }
it { is_expected.to contain_file('/opt/prometheus-puppetdb-exporter-1.0.0.linux-amd64/prometheus-puppetdb-exporter') }
it { is_expected.to contain_archive('/tmp/puppetdb_exporter-1.1.0.tar.gz') }
it { is_expected.to contain_file('/usr/local/bin/puppetdb_exporter').with('target' => '/opt/prometheus-puppetdb-exporter-1.1.0.linux-amd64/prometheus-puppetdb-exporter') }
it { is_expected.to contain_file('/opt/prometheus-puppetdb-exporter-1.1.0.linux-amd64/prometheus-puppetdb-exporter') }
it { is_expected.not_to contain_package('puppetdb_exporter') }
end
it { is_expected.to contain_prometheus__daemon('puppetdb_exporter') }
it { is_expected.to contain_user('puppetdb-exporter') }
it { is_expected.to contain_group('puppetdb-exporter') }
it { is_expected.to contain_service('puppetdb_exporter') }
it { is_expected.to contain_class('prometheus') }
it { is_expected.to contain_systemd__unit_file('puppetdb_exporter.service') }
end
end
end
Expand Down

0 comments on commit f5ef1b8

Please sign in to comment.