From c9eb8be7649f9c64bedcd5a1149afd4bb26399b9 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Mon, 27 Jan 2025 12:24:03 +0100 Subject: [PATCH] change parameter --- README.md | 8 ++++++-- templates/haproxy_acl_rule.erb | 2 +- templates/haproxy_backend_rule.erb | 2 +- templates/haproxy_frontend_rule.erb | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7a1ce8a..2254afe 100644 --- a/README.md +++ b/README.md @@ -92,8 +92,12 @@ All files and directories are configured with correct selinux context. If selinu ## Support -* OS: CentOS 7 -* Puppet 5 +* OS: CentOS 7, Rocky9 +* Puppet 6 + +## Forks + +When forking or downloading the repo, the Jenkinsfile will have to be adjusted to your own settings, as it will not work outside our cloud. ## Tests diff --git a/templates/haproxy_acl_rule.erb b/templates/haproxy_acl_rule.erb index 3584f0a..cde8af7 100644 --- a/templates/haproxy_acl_rule.erb +++ b/templates/haproxy_acl_rule.erb @@ -1,4 +1,4 @@ -<% if @fqdn == @haproxy_fqdn -%> +<% if @fqdn == @hy_host_fqdn -%> <% if @acl_rule != '' -%> <% @acl_rule.each do |acl_rule| -%> acl <%= acl_rule %> diff --git a/templates/haproxy_backend_rule.erb b/templates/haproxy_backend_rule.erb index 090772e..c18961b 100644 --- a/templates/haproxy_backend_rule.erb +++ b/templates/haproxy_backend_rule.erb @@ -1,4 +1,4 @@ -<% if @fqdn == @haproxy_fqdn -%> +<% if @fqdn == @hy_host_fqdn -%> backend <%= @backend_name %> <% @be_server_name.each do |be_server| -%> server <%= be_server %> diff --git a/templates/haproxy_frontend_rule.erb b/templates/haproxy_frontend_rule.erb index 3b569d7..7f9ca84 100644 --- a/templates/haproxy_frontend_rule.erb +++ b/templates/haproxy_frontend_rule.erb @@ -1,4 +1,4 @@ -<% if @fqdn == @haproxy_fqdn -%> +<% if @fqdn == @hy_host_fqdn -%> frontend <%= @frontend_name %> mode <%= @frontend_mode %> bind <%= @fe_bind_mode %>