Browse Source

Ensure correct permissions on /var/run/mysqld

tags/1.0
Filip Pytloun 9 years ago
parent
commit
a22a355a0d
2 changed files with 28 additions and 0 deletions
  1. +14
    -0
      galera/master.sls
  2. +14
    -0
      galera/slave.sls

+ 14
- 0
galera/master.sls View File

@@ -34,6 +34,20 @@ galera_log_dir:
- require:
- pkg: galera_packages

{%- if grains.os_family == 'Debian' %}
galera_run_dir:
file.directory:
- name: /var/run/mysqld
- makedirs: true
- mode: 755
- user: mysql
- group: root
- require:
- pkg: galera_packages
- require_in:
- service: galera_bootstrap_start_service
{%- endif %}

galera_init_script:
file.managed:
- name: /etc/init.d/mysql

+ 14
- 0
galera/slave.sls View File

@@ -34,6 +34,20 @@ galera_log_dir:
- require:
- pkg: galera_packages

{%- if grains.os_family == 'Debian' %}
galera_run_dir:
file.directory:
- name: /var/run/mysqld
- makedirs: true
- mode: 755
- user: mysql
- group: root
- require:
- pkg: galera_packages
- require_in:
- service: galera_bootstrap_start_service
{%- endif %}

galera_init_script:
file.managed:
- name: /etc/init.d/mysql

Loading…
Cancel
Save