Puppet Class: wildfly::service::sysvinit

Defined in:
manifests/service/sysvinit.pp

Overview

Wildfly sysvinit configuration



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'manifests/service/sysvinit.pp', line 3

class wildfly::service::sysvinit {
  $service_file = pick($wildfly::custom_init, "${wildfly::dirname}/${wildfly::service::service_file}")

  if $::wildfly::custom_init {
    # Pass custom initd script template for starting wildfly
    file { "/etc/init.d/${wildfly::service::service_name}":
      ensure  => present,
      mode    => '0755',
      content => epp($service_file),
      notify  => Service['wildfly'],
    }
  } else {
    # Use/Copy default initd script from installation
    file { "/etc/init.d/${wildfly::service::service_name}":
      ensure => present,
      mode   => '0755',
      source => $service_file,
      notify => Service['wildfly'],
    }
  }

}