Puppet Class: gitea::service

Defined in:
manifests/service.pp

Summary

manage service state

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 gitea::service {
  # Workaround Debian systemd tmp permissions bug
  Exec <| title == 'systemd-tmpfiles' |> {
    returns => [0,73]
  }

  systemd::tmpfile { 'gitea.conf':
    content => epp($gitea::tmpfile_epp, {
        user     => $gitea::owner,
        group    => $gitea::group,
        run_path => $gitea::run_path,
    }),
  }
  -> systemd::unit_file { 'gitea.service':
    enable  => true,
    active  => true,
    content => epp($gitea::service_epp, {
        user      => $gitea::owner,
        group     => $gitea::group,
        umask     => $gitea::umask,
        run_path  => $gitea::run_path,
        work_path => $gitea::work_path,
    }),
    require => Class['gitea::config'],
  }
}