From 80c67ac679b8d5e9b9831dd8efc05c1475aef003 Mon Sep 17 00:00:00 2001 From: Salt Date: Fri, 2 Apr 2021 16:31:48 -0500 Subject: [PATCH] Start initializing gulagbot --- inventory/group_vars/pis.yml | 7 +++++++ playbooks/pimp.yml | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/inventory/group_vars/pis.yml b/inventory/group_vars/pis.yml index 5f7443d..c674f86 100644 --- a/inventory/group_vars/pis.yml +++ b/inventory/group_vars/pis.yml @@ -1,6 +1,13 @@ # vim:ft=ansible: # DB secrets +secret_gulagbot_local_db_pass: !vault | + $ANSIBLE_VAULT;1.1;AES256 + 30623364333066613265343462633566663866643264303532343561326461383565326565333230 + 6263663530656438306165636438613037333563646432610a323830383034313639653661353266 + 66656339653239383562356230383566393135363261356365626166333863653961366532393661 + 6132366438346531650a383463396339366330393930633066663039336433313731663337383234 + 36623133613438666633626262633230643862636366393135303163323661303537 secret_grafana_local_db_pass: !vault | $ANSIBLE_VAULT;1.1;AES256 32326333383035393665316566363266623130313435353165613463336663393634353261623738 diff --git a/playbooks/pimp.yml b/playbooks/pimp.yml index 5093df7..0c111c7 100755 --- a/playbooks/pimp.yml +++ b/playbooks/pimp.yml @@ -52,11 +52,15 @@ # Allow hosts over zerotier - { type: host, database: all, user: all, address: '172.23.0.0/16', auth_method: md5 } postgresql_users: + - name: gulagbot + password: "{{ secret_gulagbot_local_db_pass }}" - name: grafana password: "{{ secret_grafana_local_db_pass }}" - name: netbox password: "{{ secret_netbox_local_db_pass }}" postgresql_databases: + - name: gulagbot + owner: gulagbot - name: grafana owner: grafana - name: netbox