From a1f7253e19e7274d1536bafa6b82808afe04ebe3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 13 Jun 2024 14:56:39 +0000 Subject: [PATCH] Update dependency hipages/php-fpm_exporter to v2.2.0 --- REFERENCE.md | 2 +- manifests/php_fpm_exporter.pp | 2 +- spec/classes/php_fpm_exporter_spec.rb | 16 ++++++++-------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/REFERENCE.md b/REFERENCE.md index 30495832..7e215d2a 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -8704,7 +8704,7 @@ Data type: `String[1]` The binary release version -Default value: `'2.0.4'` +Default value: `'2.2.0'` ##### `proxy_server` diff --git a/manifests/php_fpm_exporter.pp b/manifests/php_fpm_exporter.pp index be6d5639..a74f9042 100644 --- a/manifests/php_fpm_exporter.pp +++ b/manifests/php_fpm_exporter.pp @@ -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, diff --git a/spec/classes/php_fpm_exporter_spec.rb b/spec/classes/php_fpm_exporter_spec.rb index c70f5dc2..a533124d 100644 --- a/spec/classes/php_fpm_exporter_spec.rb +++ b/spec/classes/php_fpm_exporter_spec.rb @@ -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 @@ -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') } @@ -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 @@ -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') } @@ -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