hi,

we using eyaml for all passwords and certificates. I was able to retrieve 
for ::mysql::server::root_password the password via eyaml, but I wonder, if 
it is also possible for the created mysql users. The most howtos uses 
plain/hashed passwords (which is bad) in hiera, or put the whole 
configuration in eyaml (also bad).

So, how can I get the user password into my hiera config?

mysql::server::grants:
  'icinga2_ido_db@192.168.43.%/icinga2_ido_db.*':
    ensure     : 'present'
    options    : 'GRANT'
    privileges : ['ALL']
    table      : 'icinga2_ido_db.*'
    user       : 'icingaweb2_db@192.168.43.%'

mysql::server::users:
  'icinga2_ido_db@192.168.43.%':
    ensure        : 'present'


In the good old manifest, it works like the following:

mysql::db { 'mydb': user => 'myuser',
password => hiera('mariadb_db'), 
host => 'localhost', 
grant => ['SELECT', 'UPDATE'], }


Any suggestions?

cu denny

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/33636a67-0824-4cfb-bf96-9ed269c5909e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to