Puppet Class: confdroid_ntp::main::dirs

Inherits:
confdroid_ntp::params
Defined in:
manifests/main/dirs.pp

Summary

Class manages directories for the confdroid_ntp module

Overview

confdroid_ntp::main::dirs.pp Module name: confdroid_ntp Author: 12ww1160 (12ww1160@confdroid.com)



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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'manifests/main/dirs.pp', line 6

class confdroid_ntp::main::dirs (

) inherits confdroid_ntp::params {
  require confdroid_ntp::main::install

  # /var/log/chrony
  file { '/var/log/chrony':
    ensure   => directory,
    owner    => 'chrony',
    group    => 'chrony',
    mode     => '0750',
    selrange => s0,
    selrole  => object_r,
    seltype  => chronyd_var_log_t,
    seluser  => system_u,
  }

  # /var/lib/chrony
  file { '/var/lib/chrony':
    ensure   => directory,
    owner    => 'chrony',
    group    => 'chrony',
    mode     => '0750',
    selrange => s0,
    selrole  => object_r,
    seltype  => chronyd_var_lib_t,
    seluser  => system_u,
  }

  # /run/chrony
  file { '/run/chrony':
    ensure   => directory,
    owner    => 'chrony',
    group    => 'chrony',
    mode     => '0750',
    selrange => s0,
    selrole  => object_r,
    seltype  => chronyd_var_run_t,
    seluser  => system_u,
  }

  # /run/chrony-dhcp
  file { '/run/chrony-dhcp':
    ensure   => directory,
    owner    => 'root',
    group    => 'root',
    mode     => '0755',
    selrange => s0,
    selrole  => object_r,
    seltype  => chronyd_var_run_t,
    seluser  => system_u,
  }
}