Browse Source

Fix typo in SSL file resource

present=>exists is in valid value and hence we are hitting issue [1].
This makes it to use correct value.

[1] https://tickets.puppetlabs.com/browse/PUP-3885

Change-Id: I54a8a6d86ebdb5211ec18eb619351baffb8f2478
(cherry picked from commit 42bcb19348)
changes/89/813589/1
Martin Magr 8 months ago
parent
commit
9b0a1942b4
  1. 2
      manifests/profile/base/metrics/qdr.pp
  2. 4
      spec/classes/tripleo_profile_base_metrics_qdr_spec.rb

2
manifests/profile/base/metrics/qdr.pp

@ -224,7 +224,7 @@ class tripleo::profile::base::metrics::qdr (
$final_ssl_profiles = $prep_ssl_profiles.reduce( [] ) |$memo, $prf| {
if has_key($prf, 'caCertFileContent') {
file { $prf['caCertFile']:
ensure => exists,
ensure => present,
content => $prf['caCertFileContent'],
mode => '0600',
require => File[$ssl_cert_dir]

4
spec/classes/tripleo_profile_base_metrics_qdr_spec.rb

@ -210,12 +210,12 @@ describe 'tripleo::profile::base::metrics::qdr' do
:mode => '0700'
)
is_expected.to contain_file('/tmp/certs/CA_wubba.pem').with(
:ensure => 'exists',
:ensure => 'present',
:content => 'ca_wubba',
:mode => '0600'
)
is_expected.to contain_file('/tmp/certs/CA_lubba.pem').with(
:ensure => 'exists',
:ensure => 'present',
:content => 'ca_lubba',
:mode => '0600'
)

Loading…
Cancel
Save