We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d230e80 commit e95d51bCopy full SHA for e95d51b
manifests/server/root_password.pp
@@ -37,16 +37,16 @@
37
}
38
39
40
- $parameters = {
41
- 'root_password_set' => $root_password_set,
42
- 'root_password' => $root_password,
43
- 'options' => $options,
44
- }
45
-
46
if $mysql::server::create_root_my_cnf and $root_password_set {
47
- # TODO: use EPP instead of ERB, as EPP can handle Data of Type Sensitive without further ado
48
file { "${facts['root_home']}/.my.cnf":
49
- content => epp('mysql/my.cnf.pass.epp',$parameters),
+ content => Sensitive(stdlib::deferrable_epp(
+ 'mysql/my.cnf.pass.epp',
+ {
+ 'root_password_set' => $root_password_set,
+ 'root_password' => $root_password,
+ 'options' => $options,
+ }
+ )),
50
owner => 'root',
51
mode => '0600',
52
0 commit comments