Experiment with moving secrets to NetBox

This commit is contained in:
Salt 2021-08-26 03:35:11 -05:00
parent 579b2fa296
commit 7d34d5e931
2 changed files with 9 additions and 7 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
*.swp *.swp
.cache .cache
private.pem

View File

@ -64,13 +64,14 @@ apache_ssl_protocol: all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
##RESERVED ##RESERVED
# For gulagbot # For gulagbot
secret_gulagbot_db_pass: !vault | secret_gulagbot_db_pass: "{{ query('netbox.netbox.nb_lookup', 'secrets', api_filter='name=secret_gulagbot_db_pass', api_endpoint='https://netbox.desu.ltd', token=netbox_token, key_file='private.pem')[0].value.plaintext }}"
$ANSIBLE_VAULT;1.1;AES256 #secret_gulagbot_db_pass: !vault |
63386534643137613234643962663831353461356464363732613030626364366661626134643837 # $ANSIBLE_VAULT;1.1;AES256
6466653931366539656662323330333363633732613061360a306565643932613635353435663039 # 63386534643137613234643962663831353461356464363732613030626364366661626134643837
61386334626437323934366634343162643932393834313235356664623537636162376464613061 # 6466653931366539656662323330333363633732613061360a306565643932613635353435663039
3966393761626133320a646465376235346239333036326530363538306238626438653232623632 # 61386334626437323934366634343162643932393834313235356664623537636162376464613061
37616561326538636534393533613037336665333865613735646532656163373233 # 3966393761626133320a646465376235346239333036326530363538306238626438653232623632
# 37616561326538636534393533613037336665333865613735646532656163373233
secret_gulagbot_discord_token: !vault | secret_gulagbot_discord_token: !vault |
$ANSIBLE_VAULT;1.1;AES256 $ANSIBLE_VAULT;1.1;AES256
37613664393766353738353139323365346639393538653834643633613564646537616532316336 37613664393766353738353139323365346639393538653834643633613564646537616532316336