summaryrefslogtreecommitdiff
path: root/manifests/install.pp
blob: b6f80b45dae2c91a72d03c624aedda332f9d026a (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
class s6::install {
  package {
    's6':
      ensure => installed,
    ;
  }
  file {
    '/usr/local/bin/s6-svscanboot':
      ensure  => present,
      source  => [
        "puppet:///modules/s6/usr/local/bin/s6-svscanboot.${facts['os']['distro']['codename']}",
        'puppet:///modules/s6/usr/local/bin/s6-svscanboot',
      ],
      mode    => '0755',
      require => Package['s6'],
    ;
    '/etc/init.d/s6':
      ensure  => present,
      source  => 'puppet:///modules/s6/etc/init.d/s6',
      mode    => '0755',
      require => Package['s6'],
    ;
    '/etc/s6-services/':
      ensure => directory,
    ;
    '/etc/s6-scandir/':
      ensure => directory,
    ;
    '/var/log/s6/':
      ensure => directory,
    ;
  }
  user {
    's6-logs':
      ensure => present,
      home   => '/nonexistant',
      shell  => '/usr/sbin/nologin',
      system => true,
    ;
  }
}