Puppet Class: wildfly::service::systemd

Defined in:
manifests/service/systemd.pp

Overview

Wildfly systemd configuration



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

class wildfly::service::systemd {

  if $wildfly::service::systemd_template == 'wildfly/wildfly.systemd.service' {
    # Use native script
    file { "${wildfly::dirname}/bin/launch.sh" :
      ensure  => present,
      mode    => '0755',
      owner   => $wildfly::user,
      group   => $wildfly::group,
      # need to manage this until it's fixed in the upstream
      content => file('wildfly/launch.sh'),
      before  => File["/etc/systemd/system/${wildfly::service::service_name}.service"],
    }
  } else {
    # Use init.d scripts for systemd
    contain wildfly::service::sysvinit
  }

  file { "/etc/systemd/system/${wildfly::service::service_name}.service":
    ensure  => present,
    mode    => '0644',
    content => epp($wildfly::service::systemd_template),
    before  => Service['wildfly'],
  }

}