Skip to content

Commit

Permalink
Merge pull request #746 from voxpupuli/renovate/hipages-php-fpm_expor…
Browse files Browse the repository at this point in the history
…ter-2.x

Update dependency hipages/php-fpm_exporter to v2.2.0
  • Loading branch information
bastelfreak authored Jun 30, 2024
2 parents 8d78668 + a1f7253 commit bb391a5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8706,7 +8706,7 @@ Data type: `String[1]`

The binary release version

Default value: `'2.0.4'`
Default value: `'2.2.0'`

##### <a name="-prometheus--php_fpm_exporter--proxy_server"></a>`proxy_server`

Expand Down
2 changes: 1 addition & 1 deletion manifests/php_fpm_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
String[1] $package_name = 'php-fpm_exporter',
String[1] $user = 'php-fpm_exporter',
# renovate: depName=hipages/php-fpm_exporter
String[1] $version = '2.0.4',
String[1] $version = '2.2.0',
Boolean $purge_config_dir = true,
Boolean $restart_on_change = true,
Boolean $service_enable = true,
Expand Down
16 changes: 8 additions & 8 deletions spec/classes/php_fpm_exporter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
it { is_expected.to compile.with_all_deps }
it { is_expected.to contain_systemd__unit_file('php-fpm_exporter.service') }
it { is_expected.not_to contain_package('php-fpm_exporter') }
it { is_expected.to contain_archive('/tmp/php-fpm_exporter-2.0.4.tar.gz') }
it { is_expected.to contain_file('/opt/php-fpm_exporter-2.0.4.linux-amd64') }
it { is_expected.to contain_archive('/tmp/php-fpm_exporter-2.2.0.tar.gz') }
it { is_expected.to contain_file('/opt/php-fpm_exporter-2.2.0.linux-amd64') }
end

context 'with some params' do
Expand All @@ -29,7 +29,7 @@

describe 'with specific params' do
it { is_expected.to compile.with_all_deps }
it { is_expected.to contain_archive('/tmp/php-fpm_exporter-2.0.4.tar.gz') }
it { is_expected.to contain_archive('/tmp/php-fpm_exporter-2.2.0.tar.gz') }
it { is_expected.to contain_class('prometheus') }
it { is_expected.to contain_group('php-fpm_exporter') }
it { is_expected.to contain_user('php-fpm_exporter') }
Expand All @@ -38,8 +38,8 @@
end

describe 'install correct binary' do
it { is_expected.to contain_file('/usr/local/bin/php-fpm_exporter').with('target' => '/opt/php-fpm_exporter-2.0.4.linux-amd64/php-fpm_exporter') }
it { is_expected.to contain_file('/opt/php-fpm_exporter-2.0.4.linux-amd64') }
it { is_expected.to contain_file('/usr/local/bin/php-fpm_exporter').with('target' => '/opt/php-fpm_exporter-2.2.0.linux-amd64/php-fpm_exporter') }
it { is_expected.to contain_file('/opt/php-fpm_exporter-2.2.0.linux-amd64') }
end
end

Expand All @@ -57,7 +57,7 @@

describe 'with specific params' do
it { is_expected.to compile.with_all_deps }
it { is_expected.to contain_archive('/tmp/php-fpm_exporter-2.0.4.tar.gz') }
it { is_expected.to contain_archive('/tmp/php-fpm_exporter-2.2.0.tar.gz') }
it { is_expected.to contain_class('prometheus') }
it { is_expected.to contain_group('php-fpm_exporter') }
it { is_expected.to contain_user('php-fpm_exporter') }
Expand All @@ -66,8 +66,8 @@
end

describe 'install correct binary' do
it { is_expected.to contain_file('/usr/local/bin/php-fpm_exporter').with('target' => '/opt/php-fpm_exporter-2.0.4.linux-amd64/php-fpm_exporter') }
it { is_expected.to contain_file('/opt/php-fpm_exporter-2.0.4.linux-amd64') }
it { is_expected.to contain_file('/usr/local/bin/php-fpm_exporter').with('target' => '/opt/php-fpm_exporter-2.2.0.linux-amd64/php-fpm_exporter') }
it { is_expected.to contain_file('/opt/php-fpm_exporter-2.2.0.linux-amd64') }
end
end
end
Expand Down

0 comments on commit bb391a5

Please sign in to comment.