Merge "Move mariadb logs to volume for heka collecting"

This commit is contained in:
Jenkins 2016-07-28 14:36:49 +00:00 committed by Gerrit Code Review
commit 2c575ac3aa
3 changed files with 9 additions and 3 deletions

View File

@ -1 +1 @@
%microservices ALL=(root) NOPASSWD: /bin/chown mysql\: /var/lib/mysql, /usr/bin/chown mysql\: /var/lib/mysql, /opt/ccp/bin/mariadb-security-reset.expect
%microservices ALL=(root) NOPASSWD: /bin/chown mysql\: /var/lib/mysql, /bin/chown mysql\:mysql /var/log/ccp/mysql, /opt/ccp/bin/mariadb-security-reset.expect

View File

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

View File

@ -8,7 +8,14 @@ service:
probes:
readiness: /opt/ccp/bin/mariadb-readiness.sh
liveness: "true"
volumes:
- name: mysql-logs
path: /var/log/ccp/mysql
type: host
readOnly: False
pre:
- name: chown-logs-dir
command: sudo /bin/chown mysql:mysql /var/log/ccp/mysql
- name: mariadb-bootstrap
command: /opt/ccp/bin/mariadb-bootstrap.sh
daemon:
@ -18,7 +25,6 @@ service:
- mariadb-readiness
- mariadb-bootstrap
- mariadb-security-reset.expect
files:
mariadb-my-cnf:
path: /etc/mysql/my.cnf