Skip to content

Commit

Permalink
add webhook variable to nos_social deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
cooldracula committed Feb 22, 2024
1 parent 1da3d56 commit ca9772e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
10 changes: 10 additions & 0 deletions inventories/nos_social/group_vars/all/vault.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
$ANSIBLE_VAULT;1.1;AES256
65323434376566313037343238646564663561353962363431653030626630336663323034656334
6639383563336435656536313534643931653563386130380a643030623338363538376263326261
39613335393931383666626137646436656437633465626332393439343938306564313330643464
3136376636376532640a366136306339343132373031393062616336663331666662393036396433
35653861306636626433656239373733376162363163383330613031373331666138646537333331
64623062663466396561393565616165313465616161356435346232623737313132326165316431
62303338373838343665646365663261626535653030616165623163333731623231666665393131
65323866653434666431356233663537623562383536333438303738316131396133326339633261
38346131623430386431383164356335643531666437646464663639393738363233
1 change: 1 addition & 0 deletions inventories/nos_social/inventory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ nos_social:
nip05api_node_env: production
nip05api_auth_pubkey: 6c815df9b3e7f43492c232aba075b5fa5b6a60b731ce6ccfc7c1e8bd2adcceb2
health_check_endpoint: https://{{ domain }}/metrics
slack_webhook_url: "{{ vault_slack_webhook_url }}"
prod:
hosts:
nos.social:
Expand Down
2 changes: 1 addition & 1 deletion playbooks/nos_social.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- name: Install new server for nos.social
hosts: nos_social
hosts: nos_social:&prod
vars:
ansible_user: admin
domain: "{{ inventory_hostname }}"
Expand Down
3 changes: 2 additions & 1 deletion roles/nos_social/templates/env.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
NODE_ENV={{ nip05api_node_env }}
AUTH_PUBKEY={{ nip05api_auth_pubkey }}
ROOT_DOMAIN={{ domain }}
REDIS_HOST=redis
REDIS_HOST=redis
SLACK_WEBHOOK_URL={{ slack_webhook_url }}

0 comments on commit ca9772e

Please sign in to comment.