Puppet Class: ilmt::security
- Inherits:
- ilmt::params
- Defined in:
- manifests/security.pp
Overview
- Class
-
ilmt::security
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'manifests/security.pp', line 4
class ilmt::security (
$securitylevel = $ilmt::params::securitylevel,
$agentcert = $ilmt::params::agentcert,
$agentcertfilepath = $ilmt::params::agentcertfilepath,
$servercert = $ilmt::params::servercert,
$servercertfilepath = $ilmt::params::servercertfilepath,
) inherits ilmt::params {
File {
owner => 'root',
group => 'root',
mode => 0600
}
if ( $securitylevel > 0 ) {
if ( $servercertfilepath ) {
# server certificate
file { 'ilmt_server_certificate':
ensure => 'present',
path => $servercertfilepath,
content => $servercert,
}
}
if ( $securitylevel > 1 ) {
if ( $agentcertfilepath ) {
# agent certificate
file { 'ilmt_agent_certificate':
ensure => 'present',
path => $agentcertfilepath,
content => $agentcert,
}
}
}
}
}
|