Files
confdroid_haproxy/manifests/main/dirs.pp

38 lines
935 B
ObjectPascal
Raw Normal View History

2025-03-02 16:28:57 +01:00
## haproxy_cd::main::dirs.pp
# Module name: haproxy_cd
2018-04-24 15:32:11 +02:00
# Author: Arne Teuke (arne_teuke@confdroid.com)
2025-03-02 16:28:57 +01:00
# @summary Class manages all directories required for haproxy_cd.
2018-04-24 15:32:11 +02:00
###############################################################################
2025-03-02 16:28:57 +01:00
class haproxy_cd::main::dirs (
2018-04-24 15:32:11 +02:00
2025-03-02 16:28:57 +01:00
) inherits haproxy_cd::params {
2018-04-24 15:32:11 +02:00
if $fqdn == $hy_host_fqdn {
2025-03-02 16:28:57 +01:00
require haproxy_cd::main::user
2018-04-24 15:32:11 +02:00
# 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,
}
2018-12-30 17:50:39 +01:00
# 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,
}
}
2018-04-24 15:32:11 +02:00
}