Skip to content
Snippets Groups Projects
Commit 6ad62d15 authored by Fabien Combernous's avatar Fabien Combernous
Browse files

use Sensitive data type

parent 399f1b5a
No related branches found
No related tags found
1 merge request!13Resolve "Use Sensitive with parameter dbpassword"
Pipeline #35585 canceled
......@@ -198,11 +198,11 @@ Default value: `'u_cfssl'`
##### <a name="dbpassword"></a>`dbpassword`
Data type: `String[1]`
Data type: `Variant[String[1], Sensitive[String]]`
A password of the dbuser.
Default value: `'changeme'`
Default value: `('changeme')`
##### <a name="confdir"></a>`confdir`
......
......@@ -62,7 +62,7 @@ class cfssl (
Stdlib::Absolutepath $logdir = '/var/log/cfssl',
String[1] $dbname = 'db_cfssl',
String[1] $dbuser = 'u_cfssl',
String[1] $dbpassword = 'changeme',
Variant[String[1], Sensitive[String]] $dbpassword = Sensitive.new('changeme'),
Stdlib::Absolutepath $confdir = '/etc/cfssl',
Stdlib::Absolutepath $binpath = '/usr/local/bin',
Hash $rootca_manifest = { cn => 'EXEMPLE ROOT CA', subject => { 'C' => 'FR', 'L' => 'MONTPELLIER', 'O' => 'EXEMPLE ORG', } },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment