Puppet Class: pg_profile::database::cis_controls
- Inherits:
- pg_profile::database
- Defined in:
- manifests/database/cis_controls.pp
Summary
This class contains the actual code securing the database.Overview
--
pg_profile::database::cis_controls
Here you can customize the security by specifying the CIS rules you *don’t* want to apply.
When these customizations aren’t enough, you can replace the class with your own class. See [pg_profile::secured_database](./secured_database.html) for an explanation on how to do this.
–++–
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'manifests/database/cis_controls.pp', line 29
class pg_profile::database::cis_controls(
String[1] $dbname,
Optional[String[1]] $product_version,
Optional[String[1]] $doc_version,
Optional[Array[String[1]]] $skip_list,
) inherits pg_profile::database {
easy_type::debug_evaluation() # Show local variable on extended debug
echo {"Making sure database ${dbname} is secured.":
withpath => false,
}
pg_secured::ensure_cis { $dbname:
product_version => $product_version,
doc_version => $doc_version,
skip_list => $skip_list,
}
}
|