From 98171e449db16a939649b8c3724f028c58674240 Mon Sep 17 00:00:00 2001 From: Solal Nathan Date: Sat, 13 Mar 2021 02:48:10 +0100 Subject: [PATCH] Update postgresql variable to match the new scheme in bdd.adm.auro.re --- host_vars/bdd.adm.auro.re.yml | 64 +++++++++++++++++++++++++++++++---- 1 file changed, 58 insertions(+), 6 deletions(-) diff --git a/host_vars/bdd.adm.auro.re.yml b/host_vars/bdd.adm.auro.re.yml index 206a504..bf28fcd 100644 --- a/host_vars/bdd.adm.auro.re.yml +++ b/host_vars/bdd.adm.auro.re.yml @@ -1,8 +1,60 @@ +--- postgresql: version: 13 - hosts: # dbname, username, CIDR ip addr, auth method - - [ "nextcloud", "nextcloud", "10.128.0.58", "md5" ] - - [ "gitea", "gitea", "10.128.0.60", "md5" ] - - [ "drone", "drone", "10.128.0.64", "md5" ] - - [ "wikijs", "wikijs", "10.128.0.66", "md5" ] - - [ "vote", "vote", "10.128.0.81", "md5" ] + +postgresql_hosts: + - database: nextcloud + user: nextcloud + net: 10.128.0.58/32 + method: md5 + - database: gitea + user: gitea + net: 10.128.0.60/32 + method: md5 + - database: vote + user: vote + net: 10.128.0.81/32 + method: md5 + - database: wikijs + user: wikijs + net: 10.128.0.66/32 + method: md5 + - database: drone + user: drone + net: 10.128.0.64/32 + method: md5 + +postgresql_databases: + - nextcloud + - gitea + - vote + - wikijs + - drone + +postgresql_users: + - name: nextcloud + database: nextcloud + password: "{{ postgresql_nextcloud_passwd }}" + privs: + - ALL + - name: gitea + database: gitea + password: "{{ postgresql_gitea_passwd }}" + privs: + - ALL + - name: vote + database: vote + password: "{{ postgresql_vote_passwd }}" + privs: + - ALL + - name: wikijs + database: wikijs + password: "{{ postgresql_wikijs_passwd }}" + privs: + - ALL + - name: drone + database: drone + password: "{{ postgresql_drone_passwd }}" + privs: + - ALL +...