From 2e19e6d6c9cb1597331aaad162cc488db8f7679e Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 22 Sep 2019 18:41:12 +0200 Subject: [PATCH] avoid top-scope variable being used without an explicit namespace --- modules/ssh/manifests/init.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ssh/manifests/init.pp b/modules/ssh/manifests/init.pp index 43d89df01..32442f6f5 100644 --- a/modules/ssh/manifests/init.pp +++ b/modules/ssh/manifests/init.pp @@ -47,13 +47,13 @@ class ssh { } if (versioncmp($::lsbmajdistrelease, '8') >= 0) { - if ! $has_etc_ssh_ssh_host_ed25519_key { + if ! $facts['has_etc_ssh_ssh_host_ed25519_key'] { exec { 'create-ed25519-host-key': command => 'ssh-keygen -f /etc/ssh/ssh_host_ed25519_key -q -P "" -t ed25519', } } - if $systemd { + if $facts['systemd'] { package { [ 'libpam-systemd' ]: ensure => installed } -- 2.20.1