Puppet Class: haproxy_cd::main::dirs

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

Summary

Class manages all directories required for haproxy_cd.

Overview

haproxy_cd::main::dirs.pp Module name: haproxy_cd Author: Arne Teuke (arne_teuke@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
# File 'manifests/main/dirs.pp', line 6

class haproxy_cd::main::dirs (

) inherits haproxy_cd::params {
  if $fqdn == $hy_host_fqdn {
    require haproxy_cd::main::user

    # main dir
    file { $hy_main_dir:
      ensure   => directory,
      owner    => 'root',
      group    => 'root',
      mode     => '0755',
      selrange => s0,
      selrole  => object_r,
      seltype  => etc_t,
      seluser  => system_u,
    }

    # errors dir
    file { $hy_errors_dir:
      ensure   => directory,
      owner    => 'root',
      group    => 'root',
      mode     => '0755',
      selrange => s0,
      selrole  => object_r,
      seltype  => etc_t,
      seluser  => system_u,
    }
  }
}