]> gitweb.fluxo.info Git - puppet-sshd.git/commitdiff
Avoid evaluation error for selector entry
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 11 Sep 2017 10:54:09 +0000 (07:54 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 11 Sep 2017 10:54:09 +0000 (07:54 -0300)
manifests/init.pp

index e3f87569ef2137d799b3527c974b476261f275d6..3d569e22b5d2c13aa27844046e3eb7aeae0572c0 100644 (file)
@@ -50,9 +50,9 @@ class sshd(
   $sshkey_ipaddress = $::ipaddress,
   $manage_client = true,
   $hostkey_type = versioncmp($::ssh_version, '6.5') ? {
-     0 => [ 'rsa', 'ed25519' ],
-     1 => [ 'rsa', 'ed25519' ],
-    -1 => [ 'rsa', 'dsa' ]
+     0      => [ 'rsa', 'ed25519' ],
+     1      => [ 'rsa', 'ed25519' ],
+    default => [ 'rsa', 'dsa' ]
   },
   $use_storedconfigs = true
 ) {