Puppet Class: psick::profile
- Defined in:
- manifests/profile.pp
Overview
This class manages /etc/profile and relevant files
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'manifests/profile.pp', line 35
class psick::profile (
String $template = '', # lint:ignore:params_empty_string_assignment
Hash $options = {},
Hash $scripts_hash = {},
Boolean $add_tz_optimisation = true,
Boolean $manage = $psick::manage,
Boolean $noop_manage = $psick::noop_manage,
Boolean $noop_value = $psick::noop_value,
) {
if $manage {
if $noop_manage {
noop($noop_value)
}
if $template != '' {
file { '/etc/profile':
content => template($template),
}
}
$scripts_hash.each | $k,$v | {
psick::profile::script { $k:
* => $v,
}
}
file { '/etc/profile.d/tz.sh':
ensure => bool2ensure($add_tz_optimisation),
content => template('psick/profile/tz.sh.erb'),
}
}
}
|