From afea35737c9c3ccafd624fb763b7de8b47b4fc51 Mon Sep 17 00:00:00 2001 From: Alexander Lutay Date: Tue, 24 Oct 2017 12:50:40 +0200 Subject: [PATCH] TT#23840 TT#23724 Add tests to ensure MariaDB 10.1 configs are identical to old one MySQL 5.5 This is a plan for mr5.5* as we have no resources to migrate them now. Sure later in trunk we should confider to migrate on mariadb configs and split my.cnf probably. Change-Id: Ib97d2734c26d73996bc0b063f087ed6cfdf89f2e (cherry picked from commit bdea9a534a235b98480abc84a17cd59d35250f4b) --- templates/130_filesys-ngcp.yaml.tt2 | 113 ++++++++++++++++++++++ templates/131_filesys-ngcp-pro.yaml.tt2 | 16 +++ templates/133_filesys-deprecated.yaml.tt2 | 15 +++ 3 files changed, 144 insertions(+) diff --git a/templates/130_filesys-ngcp.yaml.tt2 b/templates/130_filesys-ngcp.yaml.tt2 index bade7fa..2c983f6 100644 --- a/templates/130_filesys-ngcp.yaml.tt2 +++ b/templates/130_filesys-ngcp.yaml.tt2 @@ -111,3 +111,116 @@ file: group: root filetype: file contains: [] + + /etc/mysql/: + exists: true + mode: "0755" + owner: root + group: root + filetype: directory + contains: [] + + /etc/mysql/conf.d: + exists: true + mode: "0755" + owner: root + group: root + filetype: directory + contains: [] + + /etc/mysql/debian-start: + exists: true + mode: "0755" + owner: root + group: root + filetype: file + contains: [] + + /etc/mysql/debian.cnf: + exists: true + mode: "0400" + owner: root + group: root + filetype: file + contains: [] + + /etc/mysql/grants.yml: + exists: true + mode: "0600" + owner: root + group: root + filetype: file + contains: [] + + /etc/mysql/inc: + exists: true + mode: "0755" + owner: root + group: root + filetype: directory + contains: [] + + /etc/mysql/inc/my.client.cnf: + exists: true + mode: "0444" + owner: root + group: root + filetype: file + contains: [] + + /etc/mysql/inc/my.myisamchk.cnf: + exists: true + mode: "0444" + owner: root + group: root + filetype: file + contains: [] + + /etc/mysql/inc/my.mysql.cnf: + exists: true + mode: "0444" + owner: root + group: root + filetype: file + contains: [] + + /etc/mysql/inc/my.safe_mysqld.cnf: + exists: true + mode: "0444" + owner: root + group: root + filetype: file + contains: [] + + /etc/mysql/inc/my.mysqldump.cnf: + exists: true + mode: "0444" + owner: root + group: root + filetype: file + contains: [] + + /etc/mysql/my.cnf: + exists: true + mode: "0444" + owner: root + group: root + filetype: file + contains: [] + + /etc/mysql/sipwise.cnf: + exists: true + mode: "0600" + owner: root + group: root + filetype: file + contains: [] + + /etc/alternatives/my.cnf: + exists: true + mode: "0777" + owner: root + group: root + linked-to: /etc/mysql/my.cnf + filetype: symlink + contains: [] diff --git a/templates/131_filesys-ngcp-pro.yaml.tt2 b/templates/131_filesys-ngcp-pro.yaml.tt2 index d3eb845..4a04896 100644 --- a/templates/131_filesys-ngcp-pro.yaml.tt2 +++ b/templates/131_filesys-ngcp-pro.yaml.tt2 @@ -98,3 +98,19 @@ file: group: root linked-to: /mnt/glusterfs/mgmt-share/approx/ filetype: symlink + + /etc/mysql/inc/my.mysqld2.cnf: + exists: true + mode: "0444" + owner: root + group: root + filetype: file + contains: [] + + /etc/mysql/inc/my.mysqld_multi.cnf: + exists: true + mode: "0444" + owner: root + group: root + filetype: file + contains: [] diff --git a/templates/133_filesys-deprecated.yaml.tt2 b/templates/133_filesys-deprecated.yaml.tt2 index 4037a8e..ec229e7 100644 --- a/templates/133_filesys-deprecated.yaml.tt2 +++ b/templates/133_filesys-deprecated.yaml.tt2 @@ -12,3 +12,18 @@ file: filetype: directory exists: false + /etc/mysql/mariadb.conf.d: + exists: false + filetype: directory + + /etc/mysql/mariadb.cnf: + exists: false + filetype: file + + /etc/mysql/my.cnf.fallback: + exists: false + filetype: file + + /etc/mysql/my.cnf.dpkg-dist: + exists: false + filetype: file