Puppet Class: centrify::service
- Defined in:
- manifests/service.pp
Overview
Class centrify::service
This class is meant to be called from centrify. It ensures the service is running and license is correct.
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 |
# File 'manifests/service.pp', line 6
class centrify::service {
service { 'centrifydc':
ensure => running,
name => $::centrify::dc_service_name,
enable => true,
hasstatus => true,
hasrestart => true,
}
service { 'centrify-sshd':
ensure => $::centrify::sshd_service_ensure,
name => $::centrify::sshd_service_name,
enable => $::centrify::sshd_service_enable,
hasstatus => true,
hasrestart => true,
}
if $centrify::use_express_license {
exec { 'set_express_license':
user => 'root',
path => ['/bin', '/usr/bin'],
command => 'adlicense --express',
onlyif => 'adinfo | grep -i \'licensed[[:space:]]*features:[[:space:]]*enabled\'',
}
}
}
|