diff --git a/templates/930_service-mariadb.yaml.tt2 b/templates/930_service-mariadb.yaml.tt2 new file mode 100644 index 0000000..13a8190 --- /dev/null +++ b/templates/930_service-mariadb.yaml.tt2 @@ -0,0 +1,23 @@ +[% + hostname = ngcp.get_hostname(); + + is_proxy = ngcp.has_role(hostname, 'proxy'); +-%] +command: + + grep using_gtid=2 /ngcp-data/mysql/master.info: + exit-status: 0 + stdout: + - "/using_gtid=2/" + stderr: [] + timeout: 10000 + +[% IF general.ngcp_type == 'carrier' && is_proxy -%] + grep using_gtid=2 /ngcp-data/mysql2/master-db01*.info: + exit-status: 0 + stdout: + - "/using_gtid=2/" + stderr: [] + timeout: 10000 + +[% END -%] diff --git a/templates/goss.yaml.tt2 b/templates/goss.yaml.tt2 index a35b642..502c68c 100644 --- a/templates/goss.yaml.tt2 +++ b/templates/goss.yaml.tt2 @@ -40,4 +40,5 @@ gossfile: 911_service-grafana.yaml: {} [% IF general.ngcp_type != 'spce' -%] 920_service-asterisk-odbc-pro.yaml: {} + 930_service-mariadb.yaml: {} [% END -%]