From b933378be5396bf2cd715e22557fdf3becc633d9 Mon Sep 17 00:00:00 2001 From: Mykola Malkov Date: Tue, 3 Apr 2018 11:08:39 +0200 Subject: [PATCH] TT#34758 Extend list of existing mysql files Empty files /etc/mysql/conf.d/my2.cnf /etc/mysql/inc/my.mysqld1.carrier_db.cnf /etc/mysql/inc/my.mysqld1.carrier_non_db.cnf /etc/mysql/inc/my.client2.cnf /etc/mysql/client.local.cnf /etc/mysql/client.central.cnf are created on PRO system Change-Id: Ide21ea301ea4ef25626c7a4ce59ea606984f43da --- templates/131_filesys-ngcp-pro.yaml.tt2 | 60 ++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/templates/131_filesys-ngcp-pro.yaml.tt2 b/templates/131_filesys-ngcp-pro.yaml.tt2 index 0434224..33d9e26 100644 --- a/templates/131_filesys-ngcp-pro.yaml.tt2 +++ b/templates/131_filesys-ngcp-pro.yaml.tt2 @@ -108,9 +108,67 @@ file: contains: [] /etc/mysql/conf.d/my2.cnf: - exists: [% general.ngcp_type == 'carrier' ? 'true' : 'false' %] + exists: true + mode: "0444" + owner: root + group: root + filetype: file + contains: [] +[% IF general.ngcp_type == 'sppro' -%] + size: 0 +[% END -%] + + /etc/mysql/inc/my.mysqld1.carrier_db.cnf: + exists: true + mode: "0444" + owner: root + group: root + filetype: file + contains: [] +[% IF general.ngcp_type == 'sppro' -%] + size: 0 +[% END -%] + + /etc/mysql/inc/my.mysqld1.carrier_non_db.cnf: + exists: true + mode: "0444" + owner: root + group: root + filetype: file + contains: [] +[% IF general.ngcp_type == 'sppro' -%] + size: 0 +[% END -%] + + /etc/mysql/inc/my.client2.cnf: + exists: true + mode: "0444" + owner: root + group: root + filetype: file + contains: [] +[% IF general.ngcp_type == 'sppro' -%] + size: 0 +[% END -%] + + /etc/mysql/client.local.cnf: + exists: true + mode: "0444" + owner: root + group: root + filetype: file + contains: [] +[% IF general.ngcp_type == 'sppro' -%] + size: 0 +[% END -%] + + /etc/mysql/client.central.cnf: + exists: true mode: "0444" owner: root group: root filetype: file contains: [] +[% IF general.ngcp_type == 'sppro' -%] + size: 0 +[% END -%]