7a6c9ac360
Made keystone use repo wide secrets file. Made glance-controller use repo wide secrets file. kill and then remove image Made neutron-controller use repo wide secrets file. Made nova-controller use repo wide secrets file Made nova-compute use repo wide secrets file. Made rabbitmq use repo wide secrets file. Allow creation of admin-openrc.sh in docker. added provider_interfaces. added persistent root folder. make each dir explicitely added missing env vars. mapped kvm machine-id from host
37 lines
705 B
YAML
37 lines
705 B
YAML
# Install a docker based mariadb.
|
|
---
|
|
- name: include secrets
|
|
include_vars:
|
|
file: ../../secrets.yml
|
|
name: secrets
|
|
|
|
- name: install service file.
|
|
template:
|
|
src: templates/mysql.service
|
|
dest: /etc/systemd/system/mysql.service
|
|
mode: 644
|
|
owner: root
|
|
group: root
|
|
|
|
- name: make mariadb settings volume
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
mode: 0777
|
|
with_items:
|
|
- /srv/mariadb/lib/mysql
|
|
- /srv/mariadb/etc/mysql
|
|
|
|
- name: place settings file
|
|
copy:
|
|
src: files/my.cnf
|
|
dest: /srv/mariadb/etc/mysql
|
|
mode: 660
|
|
|
|
- command: systemctl daemon-reload
|
|
|
|
- name: make sure service is started
|
|
systemd:
|
|
name: mysql.service
|
|
state: started
|