for env in $ENV_BASE $ENV_TEST; do
mkdir -p environments/$env/modules/nagios/files/dsa-nagios/generated/
touch environments/$env/modules/nagios/files/dsa-nagios/generated/nrpe_dsa.cfg
-
- ln -fs /etc/puppet/modules/exim/files/certs environments/$env/modules/exim/files/
- ln -fs /etc/puppet/modules/ssl/files/clientcerts environments/$env/modules/ssl/files/
done
#!/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}
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