Puppet Class: rundeck::service

Defined in:
manifests/service.pp

Summary

This class is called from rundeck to manage service.

Overview



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
# File 'manifests/service.pp', line 5

class rundeck::service {
  assert_private()

  if $rundeck::service_config {
    file { '/etc/init/rundeckd.conf':
      ensure  => file,
      mode    => '0644',
      content => epp($rundeck::service_config),
    }
  }

  if $rundeck::service_script {
    file { '/etc/init.d/rundeckd':
      ensure  => file,
      mode    => '0755',
      content => template($rundeck::service_script),
    }
  }

  service { $rundeck::service_name:
    ensure     => $rundeck::service_ensure,
    enable     => true,
    hasstatus  => true,
    hasrestart => true,
  }
}