summaryrefslogtreecommitdiff
path: root/puppet/modules/systemd/manifests/init.pp
blob: e669f0932f50113ccba481b3bdc99e84ca3f5427 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# -- Class systemd  
# This module allows triggering systemd commands once for all modules 
class systemd (
  $service_limits = {}
){

  Exec {
    refreshonly => true,
    path        => $::path,
  }

  exec {
    'systemctl-daemon-reload':
      command => 'systemctl daemon-reload',
  }

  exec {
    'systemd-tmpfiles-create':
      command => 'systemd-tmpfiles --create',
  }

  create_resources('systemd::service_limits', $service_limits, {})

}