Browse Source

common: 'Added' stretch support :)

Sebastien Badia 7 years ago
parent
commit
953ee04dd4
1 changed files with 25 additions and 15 deletions
  1. 25 15
      manifests/common.pp

+ 25 - 15
manifests/common.pp

@@ -73,21 +73,31 @@ class public::common {
 
   # Setup ssh
   # See ::private::common for other SSH configuration
-  public::ssh::configline {
-    'LoginGraceTime':
-      value => '60';
-    'UsePrivilegeSeparation':
-      value => 'yes';
-    'PermitEmptyPasswords':
-      value => 'no';
-    'PasswordAuthentication':
-      value => 'no';
-    'StrictModes':
-      value => 'yes';
-    'UseDNS':
-      value => 'no';
-    'MaxStartups':
-      value => '10:30:60';
+  case $::lsbdistcodename {
+    'stretch': {
+      public::ssh::configline {
+        'UseDNS':
+          value => 'no';
+      }
+    }
+    default: {
+      public::ssh::configline {
+        'LoginGraceTime':
+          value => '60';
+        'UsePrivilegeSeparation':
+          value => 'yes';
+        'PermitEmptyPasswords':
+          value => 'no';
+        'PasswordAuthentication':
+          value => 'no';
+        'StrictModes':
+          value => 'yes';
+        'UseDNS':
+          value => 'no';
+        'MaxStartups':
+          value => '10:30:60';
+      }
+    }
   }
 
   file {