summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hieradata/nodes/infra03.yaml3
-rw-r--r--sitemodules/profiles/templates/base/sshd_config.epp2
2 files changed, 2 insertions, 3 deletions
diff --git a/hieradata/nodes/infra03.yaml b/hieradata/nodes/infra03.yaml
index d25e78e..5051550 100644
--- a/hieradata/nodes/infra03.yaml
+++ b/hieradata/nodes/infra03.yaml
@@ -4,8 +4,7 @@ classes:
profiles::base::admins:
- jandd
- dirk
-profiles::base::backupuser:
- - infra02backup
+profiles::base::backup_user: infra02backup
profiles::base::is_external: true
profiles::icinga2_agent::pki_ticket: >
ENC[PKCS7,MIIBmQYJKoZIhvcNAQcDoIIBijCCAYYCAQAxggEhMIIBHQIBAD
diff --git a/sitemodules/profiles/templates/base/sshd_config.epp b/sitemodules/profiles/templates/base/sshd_config.epp
index 8310575..4fbf9c4 100644
--- a/sitemodules/profiles/templates/base/sshd_config.epp
+++ b/sitemodules/profiles/templates/base/sshd_config.epp
@@ -29,7 +29,7 @@ Subsystem sftp /usr/lib/openssh/sftp-server
# Allow X11Forwarding for users in the sudo group
Match Group sudo
X11Forwarding yes
-<%- if $backup_user { %>
+<%- if !empty($backup_user) { %>
Match user <%= $backup_user %>
ForceCommand internal-sftp