fix typo
This commit is contained in:
@@ -142,5 +142,20 @@ class cd_haproxy::main::files (
|
|||||||
content => template($hy_504_erb),
|
content => template($hy_504_erb),
|
||||||
notify => Service[$hy_service],
|
notify => Service[$hy_service],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# make sure rsyslog is logging haproxy logs
|
||||||
|
|
||||||
|
file { '/etc/rsyslog.d/10-haproxy.conf':
|
||||||
|
ensure => file,
|
||||||
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
|
mode => '0644',
|
||||||
|
selrange => s0,
|
||||||
|
selrole => object_r,
|
||||||
|
seltype => syslog_conf_t,
|
||||||
|
seluser => system_u,
|
||||||
|
content => template('cd_haproxy/rsyslog/'),
|
||||||
|
notify => Service['rsyslog'],
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
6
templates/rsyslog/10_haproxy.conf.erb
Normal file
6
templates/rsyslog/10_haproxy.conf.erb
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
################################################################################
|
||||||
|
##### rsyslog haproxy.conf created by Puppet #####
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
local0.* /var/log/haproxy.log
|
||||||
|
local1.* /var/log/haproxy.log
|
||||||
Reference in New Issue
Block a user