Revert "Revert "ssh_upload -> hiera role""
authorPeter Palfrader <peter@palfrader.org>
Sun, 15 Sep 2019 15:09:29 +0000 (17:09 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sun, 15 Sep 2019 15:10:56 +0000 (17:10 +0200)
This reverts commit 13581ee3cf37c33606b8c8317c0901459e34c313.

Try this again, now with an extra change in sshd_config

hieradata/common.yaml
hieradata/nodes/coccia.debian.org.yaml
hieradata/nodes/suchon.debian.org.yaml [new file with mode: 0644]
hieradata/nodes/usper.debian.org.yaml
modules/roles/manifests/init.pp
modules/ssh/templates/sshd_config.erb

index 2e4b0e6..c63ec9a 100644 (file)
@@ -112,10 +112,6 @@ roles:
     - soriano.debian.org
   security_upload:
     - suchon.debian.org
-  ssh.upload.d.o:
-    - coccia.debian.org
-    - suchon.debian.org
-    - usper.debian.org
   sso:
     - diabelli.debian.org
   # single sign on relying party (host) - also required apache2 module enabled on that host via other means
index dfa719b..17868ed 100644 (file)
@@ -2,4 +2,5 @@
 classes:
   - roles::api_ftp_master
   - roles::ftp_upload
+  - roles::ssh_upload
   - roles::static_source
diff --git a/hieradata/nodes/suchon.debian.org.yaml b/hieradata/nodes/suchon.debian.org.yaml
new file mode 100644 (file)
index 0000000..49ef5b0
--- /dev/null
@@ -0,0 +1,3 @@
+---
+classes:
+  - roles::ssh_upload
index 7d70f59..3883d97 100644 (file)
@@ -1,3 +1,4 @@
 ---
 classes:
   - roles::ftp_upload
+  - roles::ssh_upload
index f1e24a7..83ddc6c 100644 (file)
@@ -34,9 +34,6 @@ class roles {
                include roles::dakmaster
                include roles::signing
        }
-       if has_role('ssh.upload.d.o') {
-               include roles::ssh_upload
-       }
        if has_role('security_upload') {
                include roles::security_upload
        }
index 870f16f..84e7502 100644 (file)
@@ -21,7 +21,7 @@ HostKey /etc/ssh/ssh_host_rsa_key
 <%- if has_variable?("has_etc_ssh_ssh_host_ed25519_key") && @has_etc_ssh_ssh_host_ed25519_key -%>
 HostKey /etc/ssh/ssh_host_ed25519_key
 <% end %>
-<% if scope.function_has_role(['ssh.upload.d.o']) -%>
+<% if classes.include?("roles::ssh_upload") -%>
 # On ssh upload hosts we have many clients doing ssh connections to us.
 # sshd has - by default - a limit of 10 on the number of currently
 # unauthenticated (or not yet authenticated) connections.  Raise that limit.