lint params
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
## cd_haproxy::server::proxy.pp
|
||||
# Module name: cd_haproxy
|
||||
## haproxy_cd::server::proxy.pp
|
||||
# Module name: haproxy_cd
|
||||
# Author: Arne Teuke (arne_teuke@ConfDroid.com)
|
||||
# @summary Define manages the proxies for cd_haproxy.
|
||||
# @summary Define manages the proxies for haproxy_cd.
|
||||
# @param [string] haproxy_fqdn the fqdn of the haproxy server in question.
|
||||
# @param [string] frontend_name the name for the frontend section rule.
|
||||
# @param [string] frontend_order the order where the concat should appear
|
||||
@@ -21,7 +21,7 @@
|
||||
# @param [string] fe_maxconn the maximum connections for the lb instance.
|
||||
# @param [string] be_server_name set the name for the backend server
|
||||
###############################################################################
|
||||
define cd_haproxy::server::proxy (
|
||||
define haproxy_cd::server::proxy (
|
||||
|
||||
$haproxy_fqdn = undef,
|
||||
$frontend_name = undef,
|
||||
@@ -52,9 +52,9 @@ define cd_haproxy::server::proxy (
|
||||
) {
|
||||
|
||||
$hy_main_config = '/etc/haproxy/haproxy.cfg'
|
||||
$hy_frontendrule = 'cd_haproxy/haproxy_frontend_rule.erb'
|
||||
$hy_backendrule = 'cd_haproxy/haproxy_backend_rule.erb'
|
||||
$hy_acl_rule = 'cd_haproxy/haproxy_acl_rule.erb'
|
||||
$hy_frontendrule = 'haproxy_cd/haproxy_frontend_rule.erb'
|
||||
$hy_backendrule = 'haproxy_cd/haproxy_backend_rule.erb'
|
||||
$hy_acl_rule = 'haproxy_cd/haproxy_acl_rule.erb'
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
## cd_haproxy::server::service.pp
|
||||
# Module name: cd_haproxy
|
||||
## haproxy_cd::server::service.pp
|
||||
# Module name: haproxy_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# @summary Class manages the service(s) for cd_haproxy.
|
||||
# @summary Class manages the service(s) for haproxy_cd.
|
||||
#############################################################################
|
||||
class cd_haproxy::server::service (
|
||||
class haproxy_cd::server::service (
|
||||
|
||||
) inherits cd_haproxy::params {
|
||||
) inherits haproxy_cd::params {
|
||||
|
||||
if $fqdn == $hy_host_fqdn {
|
||||
|
||||
require cd_haproxy::firewall::iptables
|
||||
require haproxy_cd::firewall::iptables
|
||||
|
||||
service { $hy_service:
|
||||
ensure => running,
|
||||
|
||||
Reference in New Issue
Block a user