From 19cc99944c0838602230897f8a8838a5371e555e Mon Sep 17 00:00:00 2001 From: Tabe Kooistra Date: Mon, 24 Apr 2023 18:14:21 +0200 Subject: [PATCH] regionale websites databases geconfigureerd --- ansible/inventory/group_vars/all/mariadb.yml | 2 + ansible/inventory/host_vars/wp-staging.yml | 9 ---- .../host_vars/wp-staging/mariadb.yml | 45 ++++++++++++++++++ .../db/credentials/wordpress_staging/password | Bin 0 -> 71 bytes .../wordpress_staging_amersfoort/password | Bin 0 -> 71 bytes .../wordpress_staging_amsterdam/password | Bin 0 -> 71 bytes .../wordpress_staging_denhaag/password | Bin 0 -> 71 bytes .../wordpress_staging_haarlem/password | Bin 0 -> 71 bytes .../wordpress_staging_hilversum/password | Bin 0 -> 71 bytes .../wordpress_staging_leiden/password | Bin 0 -> 71 bytes .../wordpress_staging_rotterdam/password | Bin 0 -> 71 bytes 11 files changed, 47 insertions(+), 9 deletions(-) delete mode 100644 ansible/inventory/host_vars/wp-staging.yml create mode 100644 ansible/inventory/host_vars/wp-staging/mariadb.yml create mode 100644 ansible/secret/mariadb/db/credentials/wordpress_staging/password create mode 100644 ansible/secret/mariadb/db/credentials/wordpress_staging_amersfoort/password create mode 100644 ansible/secret/mariadb/db/credentials/wordpress_staging_amsterdam/password create mode 100644 ansible/secret/mariadb/db/credentials/wordpress_staging_denhaag/password create mode 100644 ansible/secret/mariadb/db/credentials/wordpress_staging_haarlem/password create mode 100644 ansible/secret/mariadb/db/credentials/wordpress_staging_hilversum/password create mode 100644 ansible/secret/mariadb/db/credentials/wordpress_staging_leiden/password create mode 100644 ansible/secret/mariadb/db/credentials/wordpress_staging_rotterdam/password diff --git a/ansible/inventory/group_vars/all/mariadb.yml b/ansible/inventory/group_vars/all/mariadb.yml index bb52051..1017afb 100644 --- a/ansible/inventory/group_vars/all/mariadb.yml +++ b/ansible/inventory/group_vars/all/mariadb.yml @@ -4,6 +4,8 @@ mariadb__delegate_to: 'db' mariadb__server: 'db.internal.bij1.net' +mariadb__default_privileges_aux: False + # FIXME we want this to end up in user host configuration by default, # but this does not seem to work #mariadb__client: '%.internal.bij1.net' diff --git a/ansible/inventory/host_vars/wp-staging.yml b/ansible/inventory/host_vars/wp-staging.yml deleted file mode 100644 index 183823d..0000000 --- a/ansible/inventory/host_vars/wp-staging.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- - -mariadb__databases: - - - name: 'wordpress' - -mariadb__users: - - - name: 'wordpress' diff --git a/ansible/inventory/host_vars/wp-staging/mariadb.yml b/ansible/inventory/host_vars/wp-staging/mariadb.yml new file mode 100644 index 0000000..3a1a3fb --- /dev/null +++ b/ansible/inventory/host_vars/wp-staging/mariadb.yml @@ -0,0 +1,45 @@ +--- + +mariadb__databases: + + - name: 'wordpress_staging' + + - name: 'wordpress_staging_amersfoort' + + - name: 'wordpress_staging_amsterdam' + + - name: 'wordpress_staging_denhaag' + + - name: 'wordpress_staging_haarlem' + + - name: 'wordpress_staging_hilversum' + + - name: 'wordpress_staging_leiden' + + - name: 'wordpress_staging_rotterdam' + +mariadb__users: + + - name: 'wordpress_staging' + host: 'wp-staging.internal.bij1.net' + + - name: 'wordpress_staging_amersfoort' + host: 'wp-staging.internal.bij1.net' + + - name: 'wordpress_staging_amsterdam' + host: 'wp-staging.internal.bij1.net' + + - name: 'wordpress_staging_denhaag' + host: 'wp-staging.internal.bij1.net' + + - name: 'wordpress_staging_haarlem' + host: 'wp-staging.internal.bij1.net' + + - name: 'wordpress_staging_hilversum' + host: 'wp-staging.internal.bij1.net' + + - name: 'wordpress_staging_leiden' + host: 'wp-staging.internal.bij1.net' + + - name: 'wordpress_staging_rotterdam' + host: 'wp-staging.internal.bij1.net' diff --git a/ansible/secret/mariadb/db/credentials/wordpress_staging/password b/ansible/secret/mariadb/db/credentials/wordpress_staging/password new file mode 100644 index 0000000000000000000000000000000000000000..3ebac4ea75f080368ee1f7e4feef76511bc4c047 GIT binary patch literal 71 zcmV-N0J#4EM@dveQdv+`0A6O`A!{EgFI~h{R{U`ZN1mtsQ5NWFVXFUB)-oomdY31m dO?oFJ`D)LMh?jdd6c{0lYMTwBM=DM9yR~~ literal 0 HcmV?d00001 diff --git a/ansible/secret/mariadb/db/credentials/wordpress_staging_amsterdam/password b/ansible/secret/mariadb/db/credentials/wordpress_staging_amsterdam/password new file mode 100644 index 0000000000000000000000000000000000000000..f2e24f84fbf0b7cb2d70ef9e22cb217942ad38d0 GIT binary patch literal 71 zcmV-N0J#4EM@dveQdv+`0E^^I)%8Wd@!9Z0Vk%Zx4~R;s@SNnW;d6(-7qi9uHf?Zu d4N;wV@pbPW6*j2z{srM;WoOh=@Yrz^h(XZDBdP!Z literal 0 HcmV?d00001 diff --git a/ansible/secret/mariadb/db/credentials/wordpress_staging_denhaag/password b/ansible/secret/mariadb/db/credentials/wordpress_staging_denhaag/password new file mode 100644 index 0000000000000000000000000000000000000000..0c2dc60551949ae1e921ff7bba13d2b3ae023864 GIT binary patch literal 71 zcmV-N0J#4EM@dveQdv+`06@CR%SkQrVf|b9mHRXyThEROg*fpFSxaUsV-9vF-kJ{v d)OEPwYl>qad0RQ7!G7Tgl8HuUBn-b>2SzoQ9o+x` literal 0 HcmV?d00001 diff --git a/ansible/secret/mariadb/db/credentials/wordpress_staging_haarlem/password b/ansible/secret/mariadb/db/credentials/wordpress_staging_haarlem/password new file mode 100644 index 0000000000000000000000000000000000000000..3827c0722d2d383dccfc39de354b647feeaa5cdc GIT binary patch literal 71 zcmV-N0J#4EM@dveQdv+`0Qf(A;HLJsJpi&6WD_98d4d?xyAMsHk1{)OW=D8}V=dQK dQRnHjww?b1=ol={)3JQFY5&0mER?UsB|txaAk6>( literal 0 HcmV?d00001 diff --git a/ansible/secret/mariadb/db/credentials/wordpress_staging_hilversum/password b/ansible/secret/mariadb/db/credentials/wordpress_staging_hilversum/password new file mode 100644 index 0000000000000000000000000000000000000000..454e9939d1dd1312210cb387883c84916e790e66 GIT binary patch literal 71 zcmV-N0J#4EM@dveQdv+`08@RIYE~5j<#SIr)r|8|+D>uL5bn{OhG&{BeF>Y}Qyn^(RHmBgf2G2_jR#b6(MxXniZIAAkS= literal 0 HcmV?d00001 diff --git a/ansible/secret/mariadb/db/credentials/wordpress_staging_leiden/password b/ansible/secret/mariadb/db/credentials/wordpress_staging_leiden/password new file mode 100644 index 0000000000000000000000000000000000000000..0acaac5bb8f7d791179fab3a9fd235fcc7df0b0c GIT binary patch literal 71 zcmV-N0J#4EM@dveQdv+`01sW#lN0X*$m#%=ZHG^N*N