converted galera to use repo_packages

This commit is contained in:
Kevin Carter 2014-10-01 17:20:27 -05:00
parent b41fc58920
commit 4a837149ae
5 changed files with 38 additions and 37 deletions

View File

@ -24,4 +24,5 @@
- galera_client_cnf
- galera_config
vars_files:
- vars/repo_packages/galera.yml
- vars/config_vars/container_config_galera.yml

View File

@ -14,9 +14,9 @@
# limitations under the License.
- name: Drop local .my.cnf file
template: >
src=client_my.cnf
dest=/root/.my.cnf
owner=root
group=root
mode=0600
template:
src: "client_my.cnf"
dest: "/root/.my.cnf"
owner: "root"
group: "root"
mode: "0600"

View File

@ -14,19 +14,19 @@
# limitations under the License.
- name: Create the local directories
file: >
path={{ item }}
state=directory
group=root
owner=root
recurse=true
file:
path: "{{ item }}"
state: "directory"
group: "root"
owner: "root"
recurse: "true"
with_items:
- /etc/mysql/conf.d
- name: Drop mariadb configs
template: >
src={{ item.src }}
dest={{ item.dest }}
template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
register: mariadb_config
with_items:
- { src: my.cnf, dest: /etc/mysql/my.cnf }

View File

@ -14,23 +14,23 @@
# limitations under the License.
- name: Create DB for service
mysql_db: >
login_user="{{ mysql_user }}"
login_password="{{ mysql_password }}"
login_host="{{ mysql_address }}"
name="{{ container_database }}"
state=present
mysql_db:
login_user: "{{ mysql_user }}"
login_password: "{{ mysql_password }}"
login_host: "{{ mysql_address }}"
name: "{{ container_database }}"
state: "present"
- name: Grant access to the DB for the service
mysql_user: >
login_user="{{ mysql_user }}"
login_password="{{ mysql_password }}"
login_host="{{ mysql_address }}"
name="{{ container_mysql_user }}"
password="{{ container_mysql_password }}"
host="{{ item }}"
state=present
priv={{ container_database }}.*:ALL
mysql_user:
login_user: "{{ mysql_user }}"
login_password: "{{ mysql_password }}"
login_host: "{{ mysql_address }}"
name: "{{ container_mysql_user }}"
password: "{{ container_mysql_password }}"
host: "{{ item }}"
state: "present"
priv: "{{ container_database }}.*:ALL"
with_items:
- "localhost"
- "%"

View File

@ -14,12 +14,12 @@
# limitations under the License.
- name: Ensure permissions on Log dir make it readable by syslog
file: >
path={{ item.path }}
state=directory
group={{ item.owner }}
owner={{ item.owner }}
mode=0755
recurse=true
file:
path: "{{ item.path }}"
state: "directory"
group: "{{ item.owner }}"
owner: "{{ item.owner }}"
mode: "0755"
recurse: "true"
with_items:
- { path: '/var/log/mysql/', owner: 'mysql' }