From 502b028440151bc6d9197ab13c041de503734a4b Mon Sep 17 00:00:00 2001 From: 12ww1160 <12ww1160@confdroid.com> Date: Sun, 15 Mar 2026 14:49:49 +0100 Subject: [PATCH] OP#501 adding variables and place holders for certs --- README.md | 3 +++ templates/ssl_cert.erb | 4 ++-- templates/ssl_privatekey.erb | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6b17f2c..397e536 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ - [Dependencies](#dependencies) - [Deployment](#deployment) - [Managing Check Commands](#managing-check-commands) + - [managing TLS serts](#managing-tls-serts) - [SELINUX](#selinux) - [Known Problems](#known-problems) - [Troubleshooting](#troubleshooting) @@ -99,6 +100,8 @@ A: Sometimes the name of the check is different, like this: It is very recommendable to define such commands directly within Puppet modules or profiles, so any node running the particular service controlled by the module will automatically get the required check commands defined as well, while nodes not running the service also do not contain the command check. The same then is true for Nagios checks, so you would have both the NRPE command definition and the Nagios check contained in Puppet modules or profiles to have it in one location. +## managing TLS serts + ## SELINUX All files and directories are configured with correct selinux context. If selinux is disabled, these contexts are ignored. diff --git a/templates/ssl_cert.erb b/templates/ssl_cert.erb index a3db546..f74399b 100644 --- a/templates/ssl_cert.erb +++ b/templates/ssl_cert.erb @@ -1,3 +1,3 @@ -<% unless $ne_ssl_cert_pem == undef -%> -<%= $ne_ssl_cert_pem %> +<% unless @ne_ssl_cert_pem.nil -%> +<%= @ne_ssl_cert_pem %> <% end -%> \ No newline at end of file diff --git a/templates/ssl_privatekey.erb b/templates/ssl_privatekey.erb index 055f5f6..3660917 100644 --- a/templates/ssl_privatekey.erb +++ b/templates/ssl_privatekey.erb @@ -1,3 +1,3 @@ -<% unless $ne_ssl_privatekey_pem == undef -%> -<%= $ne_ssl_privatekey_pem %> +<% unless @ne_ssl_privatekey_pem.nil -%> +<%= @ne_ssl_privatekey_pem %> <% end -%> \ No newline at end of file