Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #382 from lkosz/add_show_diff
Browse files Browse the repository at this point in the history
Add show_diff set to false for files storing passwords or private keys
  • Loading branch information
bastelfreak authored Feb 9, 2019
2 parents a4bd659 + 5fb7d2b commit f895557
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
11 changes: 6 additions & 5 deletions manifests/client/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@
}
else {
datacat { 'mcollective::client':
owner => $owner,
group => $group,
mode => $mode,
path => $mcollective::client_config_file_real,
template => 'mcollective/settings.cfg.erb',
owner => $owner,
group => $group,
mode => $mode,
path => $mcollective::client_config_file_real,
show_diff => false,
template => 'mcollective/settings.cfg.erb',
}
}

Expand Down
29 changes: 16 additions & 13 deletions manifests/server/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
}

datacat { 'mcollective::server':
owner => 'root',
group => '0',
mode => '0400',
path => $mcollective::server_config_file_real,
template => 'mcollective/settings.cfg.erb',
owner => 'root',
group => '0',
mode => '0400',
path => $mcollective::server_config_file_real,
show_diff => false,
template => 'mcollective/settings.cfg.erb',
}

mcollective::server::setting { 'classesfile':
Expand Down Expand Up @@ -52,10 +53,11 @@
}

file { $::mcollective::middleware_ssl_key_path:
owner => 'root',
group => '0',
mode => '0400',
source => $::mcollective::middleware_ssl_key_real,
owner => 'root',
group => '0',
mode => '0400',
show_diff => false,
source => $::mcollective::middleware_ssl_key_real,
}

file { $::mcollective::middleware_ssl_cert_path:
Expand All @@ -77,10 +79,11 @@
}

file { $::mcollective::ssl_server_private_path:
owner => 'root',
group => '0',
mode => '0400',
source => $::mcollective::ssl_server_private,
owner => 'root',
group => '0',
mode => '0400',
show_diff => false,
source => $::mcollective::ssl_server_private,
}

}
Expand Down

0 comments on commit f895557

Please sign in to comment.