Browse Source

Quick post-config file

Testing deployments. This may change later.
darren-patch-1
dave 3 years ago
parent
commit
40e147cf27
  1. 26
      albert/post.cfg

26
albert/post.cfg

@ -0,0 +1,26 @@
### REGISTER WITH GIT
#
## -- updated with new API token - and needs "-k" flag for the moment
curl -X POST "https://config.tombstones.org.uk:23000/api/v1/user/keys" \
-k \
-H "accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: token 2b2182bbbb7e52b3193c4c9718c6e96c372f8156" \
-d "{ \"key\": \"$(cat /root/.ssh/id_rsa.pub)\", \"read_only\": true, \"title\": \"$(hostname -s)-$(date +'%s')\"}"
### PUPPET
#
echo "Pull down the puppet manifests"
cd /var/lib/puppet/manifests
# -- apache
#git clone ssh://git@config.tombstones.org.uk:22122/tombstones/puppet-httpd.git
# -- php
#git clone ssh://git@config.tombstones.org.uk:22122/tombstones/puppet-php.git
# -- mariadb
#git clone ssh://git@config.tombstones.org.uk:22122/tombstones/puppet-mariadb.git
# -- postfix
#git clone ssh://git@config.tombstones.org.uk:22122/tombstones/puppet-postfix.git
Loading…
Cancel
Save