Refs #8140: MariaDB Server Deploy - Role WIP - Private mysql cert to passbolt search.

This commit is contained in:
Xavi Lleó 2024-12-18 11:33:30 +01:00
parent 168db9abcd
commit a0870b248a
2 changed files with 8 additions and 2 deletions

View File

@ -8,7 +8,6 @@ mariadb_requeriments:
certificates:
- { content: '{{ ca_mysql }}', dest: '/etc/mysql/ca.pem', mode: 'u=rw,g=r,o=r' }
- { content: '{{ cert_mysql }}', dest: '/etc/mysql/cert.pem', mode: 'u=rw,g=r,o=r' }
- { content: '{{ private_mysql }}', dest: '/etc/mysql/key.pem', mode: 'u=rw,g=,o=' }
required_directories:
- { path: /mnt/local-backup, owner: root, group: root, mode: 'u=rwx,g=rx,o=rx' }
- { path: /mnt/mysqlbin, owner: root, group: root, mode: 'u=rwx,g=rx,o=rx' }

View File

@ -1,5 +1,4 @@
# Revisar /root/scripts/check-memory.sh --> No es óptimo hacer lo que hace ese programa
# Ver como lanzar el mysqltuner.pl
# Revisar la tarea del cron tambien /root/scripts/scheduler-log.sh
- name: Ensure Install requirements for MariaDB repository setup script
@ -81,6 +80,14 @@
loop: "{{ certificates }}"
notify: restart-mariadb
- name: Configure MySQL master cert
copy:
content: "{{ lookup(passbolt, 'private_mysql', folder_parent_id=passbolt_folder).description }}"
dest: /etc/mysql/key.pem
owner: mysql
group: mysql
mode: u=rw,g=,o=
- name: Set MariaDB custom configuration
copy:
src: "{{ item }}"