summaryrefslogtreecommitdiff
path: root/manifests/install.pp
blob: 2042f8a34faabd8e767024f640b6c1a748d46433 (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
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,
    ;
  }
  user {
    's6-logs':
      ensure => present,
      home   => '/nonexistant',
      shell  => '/usr/sbin/nologin',
      system => true,
    ;
  }
}