creates the main conffig target and header

This commit is contained in:
Arne Teuke
2018-12-10 15:56:28 +01:00
parent 2f3afa420b
commit e64adc8f82
6 changed files with 58 additions and 19 deletions

View File

@@ -26,5 +26,24 @@ class cd_haproxy::main::files (
if $fqdn == $hy_host_fqdn {
require cd_haproxy::main::dirs
# create the concat target
concat {$hy_main_config:
ensure => present,
owner => 'root',
group => 'root',
mode => '0640',
selrange => s0,
selrole => object_r,
seltype => etc_t,
seluser => system_u,
}
# create the header
concat::fragment { 'header':
target => $hy_main_config,
content => $hy_config_head_erb,
order => '001',
}
}
}