Puppet Class: tsm::service
- Defined in:
- manifests/service.pp
Overview
Class: tsm::service
Manage the dsmsched process
Parameters
Variables
Examples
class { tsm::service
}
Authors
Toni Schmidbauer <toni@stderr.at>
Copyright
Copyright 2014-2015 Toni Schmidbauer
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'manifests/service.pp', line 22
class tsm::service {
if ! ($::tsm::service_ensure in [ 'running', 'stopped' ]) {
fail('service_ensure parameter must be running or stopped')
}
if $::tsm::service_manage == true {
case $::osfamily {
redhat: {
include tsm::service::redhat
}
debian: {
include tsm::service::debian
}
solaris: {
include tsm::service::solaris
}
'AIX': {
include tsm::service::aix
}
default: {
fail("Unsupported osfamily ${::osfamily} for managing the service!")
}
}
if $::tsm::set_initial_password == true {
$password = tsm_generate_rand_string()
exec {'generate-tsm.pwd':
command => "dsmc set password ${::tsm::initial_password} ${password}",
creates => $::tsm::tsm_pwd,
path => ['/bin', '/usr/bin']
}
Exec['generate-tsm.pwd'] -> Service[$::tsm::service_name]
}
}
}
|