Short problem description:
On each and every run I get 'notice' output for the defined password_hash.
Example:
Notice: /Stage[main]/Mongodb::Server/Mongodb::Db[admin]/Mongodb_user[User admin on db admin]/password_hash: defined 'password_hash' as 'ahash'
Notice: /Stage[main]/Profiles::Mongodb/Mongodb_user[devuser]/password_hash: defined 'password_hash' as 'anotherhash'
Affected Puppet, Ruby, OS and module versions/distributions
- Puppet: 4.10.5
- Ruby: 2.0.0p648
- Distribution: RHEL 7
- Module version: 1.1.0
How to reproduce (e.g Puppet code you use)
if $auth {
# Set auth enabled server vars
# Default auth vars
$default_auth_vars = {
auth => true,
create_admin => true,
store_creds => true,
}
# Take hiera data information
$hiera_auth_vars = lookup('mongoadmin', Hash, hash, {
admin_roles => 'root',
admin_username => 'admin',
admin_password => '',
})
# Build authvars var
$authvars = deep_merge($default_auth_vars,$hiera_auth_vars)
#defaults for user creation
$user_defaults = {
ensure => present,
tries => 3,
require => Class['mongodb::server'],
}
# Get users and database config directly from hiera
create_resources('mongodb_user', lookup('mongousers', Hash), $user_defaults)
}
else {
# If auth is failed
# set auth disabled server vars (default behaviour for legacy)
$authvars = {
auth => false,
create_admin => false,
}
}
What are you seeing
Notice: /Stage[main]/Mongodb::Server/Mongodb::Db[admin]/Mongodb_user[User admin on db admin]/password_hash: defined 'password_hash' as 'ahash'
Notice: /Stage[main]/Profiles::Mongodb/Mongodb_user[devuser]/password_hash: defined 'password_hash' as 'anotherhash'
What behaviour did you expect instead
no notice output
Output log
Notice: /Stage[main]/Mongodb::Server/Mongodb::Db[admin]/Mongodb_user[User admin on db admin]/password_hash: defined 'password_hash' as 'ahash'
Notice: /Stage[main]/Profiles::Mongodb/Mongodb_user[devuser]/password_hash: defined 'password_hash' as 'anotherhash'
Any additional information you'd like to impart
Short problem description:
On each and every run I get 'notice' output for the defined password_hash.
Example:
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
What are you seeing
What behaviour did you expect instead
no notice output
Output log
Any additional information you'd like to impart