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)
This commit is contained in:
Martin Magr 2021-10-11 15:05:51 +02:00
parent d4bbee8db9
commit 9b0a1942b4
2 changed files with 3 additions and 3 deletions

View File

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

View File

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