avoid top-scope variable being used without an explicit namespace
authorPeter Palfrader <peter@palfrader.org>
Sun, 22 Sep 2019 16:41:12 +0000 (18:41 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sun, 22 Sep 2019 16:41:59 +0000 (18:41 +0200)
modules/ssh/manifests/init.pp

index 43d89df..32442f6 100644 (file)
@@ -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
       }