Merge remote-tracking branch 'origin/master' into staging
[mirror/dsa-puppet.git] / spec / octocatalog / init-system
index 5214325..aedf7e9 100755 (executable)
@@ -1,25 +1,29 @@
 #!/bin/bash
 set -euE
 
-function puppetfile() {
+function file() {
   for i in "$@"; do
-    f="/etc/puppet/$i"
-    mkdir -p $(dirname $f)
-    echo "file $i" > $f
+    mkdir -p $(dirname $i)
+    echo "file $i" > $i
   done
 }
 
-mkdir -p /etc/puppet /var/lib/puppet/yaml/node/
-touch /etc/puppet/secret
+file /etc/puppet/secret
 
-puppetfile modules/exim/files/certs/ca.{crl,crt}
-puppetfile modules/ssl/files/clientcerts/ca.{crl,crt}
+file /srv/puppet.debian.org/ca/RESULT/certs/ca.{crl,crt}
+file /srv/puppet.debian.org/ca/RESULT/clientcerts/ca.{crl,crt}
+
+file /srv/puppet.debian.org/sync/data/dsa-nagios/generated/nrpe_dsa.cfg
+
+for i in salsa.debian.org signup.salsa.debian.org webhook.salsa.debian.org pages.debian.net; do
+  file /srv/puppet.debian.org/from-letsencrypt/$i.{crt,crt-chain,crt-chained,key}
+done
 
 for fact in spec/octocatalog/facts/*; do
   hostname=$(basename $fact .json)
 
-  puppetfile modules/exim/files/certs/$hostname.{crt,key}
-  puppetfile modules/ssl/files/clientcerts/$hostname.{client.crt,key}
+  file /srv/puppet.debian.org/ca/RESULT/certs/$hostname.{crt,key}
+  file /srv/puppet.debian.org/ca/RESULT/clientcerts/$hostname.{client.crt,key}
 
-  touch /var/lib/puppet/yaml/node/$hostname.yaml
+  file /var/lib/puppet/yaml/node/$hostname.yaml
 done