Skip to content

Commit

Permalink
(profile::ccs::postfix) convert auth param to Sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoblitt committed Apr 1, 2024
1 parent 1babd2e commit a86ec52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/profile/manifests/ccs/postfix.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
# List of postfix packages to install
#
class profile::ccs::postfix (
String $auth,
Sensitive[String[1]] $auth,
Array[String] $packages,
) {
include postfix

postfix::hash { '/etc/postfix/sasl_passwd':
ensure => 'present',
content => $auth,
content => $auth.unwrap,
}

ensure_packages($packages)
Expand Down
2 changes: 2 additions & 0 deletions spec/fixtures/hieradata/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ lookup_options:
convert_to: "Sensitive"
'^restic::(id|key|password)$':
convert_to: "Sensitive"
'^profile::ccs::postfix::auth$':
convert_to: "Sensitive"
ccs_database::database: "comcamdbprod"
ccs_database::password: "foo"
foreman_proxy::plugin::dns::route53::aws_access_key: "foo"
Expand Down

0 comments on commit a86ec52

Please sign in to comment.