diff --git a/manifests/main/files.pp b/manifests/main/files.pp index 996abfe..78f44c7 100644 --- a/manifests/main/files.pp +++ b/manifests/main/files.pp @@ -73,5 +73,82 @@ class cd_haproxy::main::files ( notify => Service[$hy_service], } + file { $hy_403_file: + ensure => file, + owner => 'root', + group => 'root', + mode => '0644', + selrange => s0, + selrole => object_r, + seltype => etc_t, + seluser => system_u, + content => template($hy_403_erb), + notify => Service[$hy_service], + } + + file { $hy_408_file: + ensure => file, + owner => 'root', + group => 'root', + mode => '0644', + selrange => s0, + selrole => object_r, + seltype => etc_t, + seluser => system_u, + content => template($hy_408_erb), + notify => Service[$hy_service], + } + + file { $hy_500_file: + ensure => file, + owner => 'root', + group => 'root', + mode => '0644', + selrange => s0, + selrole => object_r, + seltype => etc_t, + seluser => system_u, + content => template($hy_500_erb), + notify => Service[$hy_service], + } + + file { $hy_502_file: + ensure => file, + owner => 'root', + group => 'root', + mode => '0644', + selrange => s0, + selrole => object_r, + seltype => etc_t, + seluser => system_u, + content => template($hy_502_erb), + notify => Service[$hy_service], + } + + file { $hy_503_file: + ensure => file, + owner => 'root', + group => 'root', + mode => '0644', + selrange => s0, + selrole => object_r, + seltype => etc_t, + seluser => system_u, + content => template($hy_503_erb), + notify => Service[$hy_service], + } + + file { $hy_504_file: + ensure => file, + owner => 'root', + group => 'root', + mode => '0644', + selrange => s0, + selrole => object_r, + seltype => etc_t, + seluser => system_u, + content => template($hy_504_erb), + notify => Service[$hy_service], + } } } diff --git a/manifests/params.pp b/manifests/params.pp index 2f163a8..b2ba71f 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -130,6 +130,18 @@ $hy_main_config = "${hy_main_dir}/haproxy.cfg" $hy_config_head_erb = 'cd_haproxy/haproxy_head.erb' $hy_400_file = "${hy_errors_dir}/400.http" $hy_400_erb = 'cd_haproxy/errors/400_http.erb' +$hy_403_file = "${hy_errors_dir}/403.http" +$hy_403_erb = 'cd_haproxy/errors/403_http.erb' +$hy_408_file = "${hy_errors_dir}/408.http" +$hy_408_erb = 'cd_haproxy/errors/408_http.erb' +$hy_500_file = "${hy_errors_dir}/500.http" +$hy_500_erb = 'cd_haproxy/errors/500_http.erb' +$hy_502_file = "${hy_errors_dir}/502.http" +$hy_502_erb = 'cd_haproxy/errors/502_http.erb' +$hy_503_file = "${hy_errors_dir}/503.http" +$hy_503_erb = 'cd_haproxy/errors/503_http.erb' +$hy_504_file = "${hy_errors_dir}/504.http" +$hy_504_erb = 'cd_haproxy/errors/504_http.erb' # includes must be last