Skip to content

Commit

Permalink
Rename mysql_host to mariadb_host so it is the same for all apps and
Browse files Browse the repository at this point in the history
environments
  • Loading branch information
quartje committed Jul 9, 2024
1 parent 560105b commit 41a8891
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 28 deletions.
15 changes: 9 additions & 6 deletions environments/template/group_vars/template.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
---
env: "%env%"
mariadb_host: localhost
rsyslog_host: localhost
database_clients: [ "{{ mariadb_host }}" ]
use_selfsigned_certs: true
update_hosts_file: true
use_welcome_role: true
Expand Down Expand Up @@ -207,7 +210,7 @@ springboot_server_services:
guest_qualifier: "urn:collab:org:{{ base_domain }}"

engine_database_name: eb
engine_database_host: "{{ mysql_host }}"
engine_database_host: "{{ mariadb_host }}"
engine_database_port: 3306
engine_database_user: ebrw
engine_database_password: "{{ mysql_passwords.eb }}"
Expand Down Expand Up @@ -254,14 +257,14 @@ shibboleth_apps:
baseurl: ""

shib:
db_host: "{{ mysql_host }}"
db_host: "{{ mariadb_host }}"
shibboleth_database_backend: false

teams:
db_name: "teams"
db_user: "teamsrw"
db_password: "{{ mysql_passwords.teams }}"
db_host: "{{ mysql_host }}"
db_host: "{{ mariadb_host }}"
group_name_context: "urn:collab:group:{{ base_domain }}:"
voot_api_user: "voot"
spdashboard_api_user: "spdashboard"
Expand Down Expand Up @@ -330,7 +333,7 @@ pdp:
password: "{{ pdp_password }}"
db_user: pdp-serverrw
db_password: "{{ mysql_passwords.pdp_server }}"
db_host: "{{ mysql_host }}"
db_host: "{{ mariadb_host }}"
db_name: pdp-server
spring_profiles_active: test
cache_policies: false
Expand All @@ -345,7 +348,7 @@ aa:
eb_password: "{{ aa_eb_password }}"
db_user: aa-serverrw
db_password: "{{ mysql_passwords.aa_server }}"
db_host: "{{ mysql_host }}"
db_host: "{{ mariadb_host }}"
db_name: aaserver
authz_client_id: "aa.{{base_domain}}"
authz_resource_server_id: aa
Expand Down Expand Up @@ -447,7 +450,7 @@ manage:
eb_db_user: "{{ engine_database_user }}"
eb_db_password: "{{ mysql_passwords.eb }}"
eb_db_name: "{{ engine_database_name }}"
eb_db_host: "{{ mysql_host }}"
eb_db_host: "{{ mariadb_host }}"
mongo_port: "{{ mongo_port }}"
mongo_user: managerw
mongo_password: "{{ mongo_passwords.manage }}"
Expand Down
7 changes: 0 additions & 7 deletions environments/template/secrets/skeleton.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
env: "%env%"

mysql_host: localhost
rsyslog_host: localhost

database_clients: [ "{{ mysql_host }}" ]

mysql_root_password: secret

mysql_passwords:
Expand Down
14 changes: 10 additions & 4 deletions environments/vm/group_vars/vm.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
---
env: vm

base_domain: "{{ env }}.openconext.org"

rsyslog_host: localhost
mariadb_host: localhost
database_clients: [ "{{ mariadb_host }}" ]
use_selfsigned_certs: true
update_hosts_file: true
use_welcome_role: true
Expand Down Expand Up @@ -150,7 +156,7 @@ teams:
db_name: "teams"
db_user: "teamsrw"
db_password: "{{ mysql_passwords.teams }}"
db_host: "{{ mysql_host }}"
db_host: "{{ mariadb_host }}"
group_name_context: "urn:collab:group:{{ base_domain }}:"
voot_api_user: "voot"
spdashboard_api_user: "spdashboard"
Expand Down Expand Up @@ -221,7 +227,7 @@ pdp:
password: "{{ pdp_password }}"
db_user: pdp-serverrw
db_password: "{{ mysql_passwords.pdp_server }}"
db_host: "{{ mysql_host }}"
db_host: "{{ mariadb_host }}"
db_name: pdp-server
spring_profiles_active: test
cache_policies: false
Expand All @@ -235,7 +241,7 @@ aa:
eb_password: "{{ aa_eb_password }}"
db_user: aa-serverrw
db_password: "{{ mysql_passwords.aa_server }}"
db_host: "{{ mysql_host }}"
db_host: "{{ mariadb_host }}"
db_name: aaserver
authz_client_id: "aa.{{ base_domain }}"
authz_resource_server_id: aa
Expand Down Expand Up @@ -334,7 +340,7 @@ manage:
eb_db_user: "{{ engine_database_user }}"
eb_db_password: "{{ mysql_passwords.eb }}"
eb_db_name: "{{ engine_database_name }}"
eb_db_host: "{{ mysql_host }}"
eb_db_host: "{{ mariadb_host }}"
mongo_port: "{{ mongo_port }}"
mongo_user: "{{ manage_mongo_user }}"
mongo_password: "{{ mongo_passwords.manage }}"
Expand Down
8 changes: 0 additions & 8 deletions environments/vm/secrets/vm.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
env: vm
base_domain: "{{ env }}.openconext.org"

mysql_host: localhost
rsyslog_host: localhost

database_clients: [ "{{ mysql_host }}" ]

mysql_root_password: secret
galera_clustercheck_password: secret

Expand Down
2 changes: 1 addition & 1 deletion roles/diyidp/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
diyidp_domain: "diyidp.{{ base_domain }}"
diyidp_cert: "diyidp.crt"
diyidp:
db_host: "{{ mysql_host }}"
db_host: "{{ mariadb_host }}"
db_name: diyidp
db_user: diyidprw
db_password: "{{ mysql_passwords.diyidp }}"
Expand Down
4 changes: 2 additions & 2 deletions roles/mysql/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
user: ""
state: absent
login_user: root
host: "{{ mysql_host }}"
host: "{{ mariadb_host }}"
login_password: "{{ mysql_root_password }}"
tags:
- mysql
Expand All @@ -57,7 +57,7 @@
user: ""
state: absent
login_user: root
host: "{{ mysql_host }}"
host: "{{ mariadb_host }}"
login_password: "{{ mysql_root_password }}"
tags:
- mysql
Expand Down

0 comments on commit 41a8891

Please sign in to comment.