diff --git a/REFERENCE.md b/REFERENCE.md index 33577765b..dc3439ccb 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -6544,7 +6544,7 @@ Data type: `String[1]` The binary release version -Default value: `'0.20.4'` +Default value: `'0.40.0'` ##### `use_kingpin` diff --git a/manifests/mongodb_exporter.pp b/manifests/mongodb_exporter.pp index 612f05db0..284db27ce 100644 --- a/manifests/mongodb_exporter.pp +++ b/manifests/mongodb_exporter.pp @@ -68,7 +68,7 @@ String[1] $service_name = 'mongodb_exporter', String[1] $user = 'mongodb-exporter', # renovate: depName=percona/mongodb_exporter - String[1] $version = '0.20.4', + String[1] $version = '0.40.0', Boolean $use_kingpin = true, Boolean $purge_config_dir = true, Boolean $restart_on_change = true, diff --git a/spec/classes/mongodb_exporter_spec.rb b/spec/classes/mongodb_exporter_spec.rb index 9a1f30fe9..d9fab1d5e 100644 --- a/spec/classes/mongodb_exporter_spec.rb +++ b/spec/classes/mongodb_exporter_spec.rb @@ -12,7 +12,7 @@ context 'with version specified' do let(:params) do { - version: '0.20.4', + version: '0.40.0', arch: 'amd64', os: 'linux', bin_dir: '/usr/local/bin', @@ -25,7 +25,7 @@ end describe 'install correct binary' do - it { is_expected.to contain_file('/usr/local/bin/mongodb_exporter').with('target' => '/opt/mongodb_exporter-0.20.4.linux-amd64/mongodb_exporter') } + it { is_expected.to contain_file('/usr/local/bin/mongodb_exporter').with('target' => '/opt/mongodb_exporter-0.40.0.linux-amd64/mongodb_exporter') } end end end