Puppet Class: db2_profile::database::db_groups
- Defined in:
- manifests/database/db_groups.pp
Summary
This class contains the definition for all the database users you'd like on your system.Overview
db2_profile::database::db_users
When these customizations aren’t enough, you can replace the class with your own class. See [db2_profile::database](./database.html) for an explanation on how to do this.
See the file “LICENSE” for the full license governing this code.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'manifests/database/db_groups.pp', line 17
class db2_profile::database::db_groups (
Hash $list,
) {
easy_type::debug_evaluation() # Show local variable on extended debug
if $list.keys.size > 0 {
echo { "Ensure DB group(s) ${list.keys.join(',')}":
withpath => false,
}
}
#
# This is a simple way to get started. It is easy to get started, but
# soon your hiera yaml becomes a nigtmare. Our advise is when you need
# to let Puppet manage your DB2 groups, to override this class and
# add your own Puppet implementation. This is a much better, more
# maintainable, and adds more consistency.
#
ensure_resources(db2_group, $list)
}
|