octocatalog: add dummy file for LE service certs
[mirror/dsa-puppet.git] / spec / octocatalog / init-system
1 #!/bin/bash
2 set -euE
3
4 function file() {
5   for i in "$@"; do
6     mkdir -p $(dirname $i)
7     echo "file $i" > $i
8   done
9 }
10
11 file /etc/puppet/secret
12
13 file /srv/puppet.debian.org/ca/RESULT/certs/ca.{crl,crt}
14 file /srv/puppet.debian.org/ca/RESULT/clientcerts/ca.{crl,crt}
15
16 file /srv/puppet.debian.org/sync/data/dsa-nagios/generated/nrpe_dsa.cfg
17
18 file /srv/puppet.debian.org/from-letsencrypt/salsa.debian.org.{crt,key}
19
20 for fact in spec/octocatalog/facts/*; do
21   hostname=$(basename $fact .json)
22
23   file /srv/puppet.debian.org/ca/RESULT/certs/$hostname.{crt,key}
24   file /srv/puppet.debian.org/ca/RESULT/clientcerts/$hostname.{client.crt,key}
25
26   file /var/lib/puppet/yaml/node/$hostname.yaml
27 done