|
|
@ -1,12 +1,13 @@ |
|
|
|
### 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')\"}" |
|
|
|
## -- removed - common/post.cfg ought to take care of this. |
|
|
|
#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 |
|
|
|
# |
|
|
|