Remove variables for mariadb volume

Change-Id: I333e9d89e56ff292bc3da2c636eb53e80b8c62d3
This commit is contained in:
Proskurin Kirill 2016-08-18 18:27:51 +03:00
parent 5cacd475e7
commit ca9f7ae18b
3 changed files with 3 additions and 4 deletions

View File

@ -2,4 +2,3 @@ configs:
db_max_timeout: 60
db_root_password: password
mariadb_port: 3306
mariadb_log_base: /var/log/ccp/mysql

View File

@ -3,7 +3,7 @@ bind-address = {{ network_topology["private"]["address"] }}
port = {{ mariadb_port }}
datadir=/var/lib/mysql/
log-error={{ mariadb_log_base }}/mysql.log
log-error=/var/log/ccp/mysql/mysql.log
max_connections=10000
log-bin=mariadb-bin

View File

@ -10,12 +10,12 @@ service:
liveness: "true"
volumes:
- name: mysql-logs
path: "{{ mariadb_log_base }}"
path: "/var/log/ccp/mysql"
type: host
readOnly: False
pre:
- name: chown-logs-dir
command: "sudo /bin/chown mysql:mysql {{ mariadb_log_base }}"
command: "sudo /bin/chown mysql:mysql /var/log/ccp/mysql"
- name: mariadb-bootstrap
command: /opt/ccp/bin/mariadb-bootstrap.sh
daemon: