upload hosts towards ftp-master need read access to the bm dak replica
authorPeter Palfrader <peter@palfrader.org>
Tue, 1 Oct 2019 13:46:47 +0000 (15:46 +0200)
committerPeter Palfrader <peter@palfrader.org>
Tue, 1 Oct 2019 13:46:47 +0000 (15:46 +0200)
data/nodes/coccia.debian.org.yaml
data/nodes/usper.debian.org.yaml
modules/roles/manifests/api_ftp_master.pp
modules/roles/manifests/queued_to_ftpmaster.pp [new file with mode: 0644]

index 17868ed..9054335 100644 (file)
@@ -3,4 +3,5 @@ classes:
   - roles::api_ftp_master
   - roles::ftp_upload
   - roles::ssh_upload
+  - roles::queued_to_ftpmaster
   - roles::static_source
index 3883d97..1dab4de 100644 (file)
@@ -2,3 +2,4 @@
 classes:
   - roles::ftp_upload
   - roles::ssh_upload
+  - roles::queued_to_ftpmaster
index c303178..61b9d37 100644 (file)
@@ -7,5 +7,4 @@ class roles::api_ftp_master {
 
   # is api_ftp_master the right role to put this in?
   include roles::udd::db_guest_access
-  include roles::postgresql::ftp_master_dak_replica::db_guest_access::bm
 }
diff --git a/modules/roles/manifests/queued_to_ftpmaster.pp b/modules/roles/manifests/queued_to_ftpmaster.pp
new file mode 100644 (file)
index 0000000..fb70798
--- /dev/null
@@ -0,0 +1,7 @@
+# ftp-master runs scripts that need access to the dak DB replica
+#
+# Hosts that run upload queues (ftp or ssh), for packages destined
+# for ftp-master.
+class roles::queued_to_ftpmaster {
+  include roles::postgresql::ftp_master_dak_replica::db_guest_access::bm
+}