Browse Source

ssh: Manage case for ganeti hosts…

Sebastien Badia 8 years ago
parent
commit
3114f0cb8b
1 changed files with 17 additions and 4 deletions
  1. 17 4
      manifests/common.pp

+ 17 - 4
manifests/common.pp

@@ -84,12 +84,25 @@ class public::common {
     enable     => true,
   }
 
+  case $::fqdn {
+    'cannibalon.ldn-fai.net', 'eternium.ldn-fai.net': {
+      public::ssh::configline {
+        'PermitRootLogin':
+          value => 'without-password';
+      }
+    }
+    default: {
+      public::ssh::configline {
+        'Port':
+          value => '2222';
+        'PermitRootLogin':
+          value => 'no';
+      }
+    }
+  }
+
   # Setup ssh
   public::ssh::configline {
-    'Port':
-      value => '2222';
-    'PermitRootLogin':
-      value => 'no';
     'LoginGraceTime':
       value => '60';
     'UsePrivilegeSeparation':