cb2d63a731
Implements reconfiguring the mariadb service. Change-Id: Ia28b85df10494adeb585fa9352ec7d45f95b8e5e Closes-Bug: #1553524
27 lines
650 B
YAML
27 lines
650 B
YAML
---
|
|
- name: Ensuring config directories exist
|
|
file:
|
|
path: "{{ node_config_directory }}/{{ item }}"
|
|
state: "directory"
|
|
recurse: yes
|
|
with_items:
|
|
- "mariadb"
|
|
|
|
- name: Copying over config.json files for services
|
|
template:
|
|
src: "{{ item }}.json.j2"
|
|
dest: "{{ node_config_directory }}/{{ item }}/config.json"
|
|
with_items:
|
|
- "mariadb"
|
|
|
|
- name: Copying over galera.cnf
|
|
merge_configs:
|
|
vars:
|
|
service_name: "{{ item }}"
|
|
sources:
|
|
- "{{ role_path }}/templates/galera.cnf.j2"
|
|
- "/etc/kolla/config/galera.cnf"
|
|
dest: "{{ node_config_directory }}/{{ item }}/galera.cnf"
|
|
with_items:
|
|
- "mariadb"
|