DEPLOY STALIN

This commit is contained in:
Salt 2021-04-03 03:40:29 -05:00
parent 97243641ab
commit 8d2350da9c
3 changed files with 36 additions and 0 deletions

View File

@ -53,6 +53,24 @@ apache_ssl_protocol: all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
# For geerlingguy.php
##RESERVED
# For gulagbot
secret_gulagbot_db_pass: !vault |
$ANSIBLE_VAULT;1.1;AES256
63386534643137613234643962663831353461356464363732613030626364366661626134643837
6466653931366539656662323330333363633732613061360a306565643932613635353435663039
61386334626437323934366634343162643932393834313235356664623537636162376464613061
3966393761626133320a646465376235346239333036326530363538306238626438653232623632
37616561326538636534393533613037336665333865613735646532656163373233
secret_gulagbot_discord_token: !vault |
$ANSIBLE_VAULT;1.1;AES256
37613664393766353738353139323365346639393538653834643633613564646537616532316336
6532636639333062643631316234386533613862353232390a656634383663623064326666313861
35373034363332363064613165313034666166666233363963646333306138346463613166396438
6138366330623562330a636637326335383333643230333565366263383361333936346638363163
63343237616363376135303938373833373531306433633536613464363664303861353630313366
34356463653362613561373830373235633034656566633032653931316465316438363532396363
333735353435383566323463303566646637
# For gitea
secret_gitea_9iron_db_pass: !vault |
$ANSIBLE_VAULT;1.1;AES256

View File

@ -28,6 +28,8 @@
postgresql_users:
- name: gitea-desultd
password: "{{ secret_gitea_db_pass }}"
- name: gulagbot-desultd
password: "{{ secret_gulagbot_db_pass }}"
- name: nextcloud-desultd
password: "{{ secret_nextcloud_db_pass }}"
- name: pleroma-cowfee
@ -35,6 +37,8 @@
postgresql_databases:
- name: gitea-desultd
owner: gitea-desultd
- name: gulagbot-desultd
owner: gulagbot-desultd
- name: nextcloud-desultd
owner: nextcloud-desultd
- name: pleroma_cowfee

View File

@ -26,6 +26,20 @@
volumes:
- /data/9iron/files:/var/www/html/files
tags: [ docker, 9iron ]
- name: docker deploy gulagbot
docker_container:
name: gulagbot
state: started
image: rehashedsalt/gulagbot:latest
restart_policy: unless-stopped
pull: yes
env:
DISCORD_TOKEN: "{{ secret_gulagbot_discord_token }}"
PGHOST: 192.168.164.156
PGDATABASE: gulagbot-desultd
PGUSER: gulagbot-desultd
PGPASSWORD: "{{ secret_gulagbot_db_pass }}"
tags: [ docker, gulagbot, stalin ]
roles:
- role: backup
vars: