Hi there
Is there a more deatiled example available on hashes for hiera 5
class profiles::postgresql {
$config_entry = hiera_hash('postgresql::server::config_entry', {})
create_resources(postgresql::server::config_entry, $config_entry)
$pg_hba_rule = hiera_hash('postgresql::server::pg_hba_rule', {})
create_resources(postgresql::server::pg_hba_rule, $pg_hba_rule)
$role = hiera_hash('postgresql::server::role', {})
create_resources(postgresql::server::role, $role)
$db = hiera_hash('postgresql::server::db', {})
create_resources(postgresql::server::db, $db)
}
the example above is working with hiera 3 that will be depricated in the future. Currently I don't understand how I've to replace hiera\_hash and create\_resources. After reading the docs I am more and more confused. In the last year I didn't work with puppet but in some weeks I am starting a new longterm project they I'll start with state on the art.
↧