Puppet Class: cd_haproxy::main::dirs

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

Summary

Class manages all directories required for cd_haproxy.

Overview

cd_haproxy::main::dirs.pp Module name: cd_haproxy 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
37
# File 'manifests/main/dirs.pp', line 6

class cd_haproxy::main::dirs (

) inherits cd_haproxy::params {

  if $fqdn == $hy_host_fqdn {
    require cd_haproxy::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,
    }
  }
}