Browse Source

Fixed error on the CURL command

Removed trailing newline - broke the CURL push
master
dave 3 years ago
parent
commit
094d6648ff
  1. 4
      albert/post.cfg

4
albert/post.cfg

@ -18,11 +18,11 @@ git clone deploy:/tombstones/puppet-httpd.git
## -- not certain why these are needed, as puppet uses the "deploy" alias to pull things down.
curl -X POST "https://config.tombstones.org.uk:23000/api/v1/user/keys" \
curl -X POST "https://config.tombstones.org.uk:23000/api/v1/user/keys" \
-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)-2-$(date +'%s')\"}"
-d "{ \"key\": \"$(cat /root/.ssh/id_rsa.pub)\", \"read_only\": true, \"title\": \"$(hostname -s)-postcfg-$(date +'%s')\"}"
# -- php
#git clone ssh://git@config.tombstones.org.uk:22022/tombstones/puppet-php.git

Loading…
Cancel
Save