From a6daf4ece3f05600ad66fea55c5220d07a71cef1 Mon Sep 17 00:00:00 2001 From: Michael Polenchuk Date: Wed, 24 May 2017 12:44:05 +0400 Subject: [mcp] Bring in reclass system salt models Change-Id: I1a865b7524f3a5242544e60e6b36b1092721c58b Signed-off-by: Michael Polenchuk --- mcp/reclass/classes/system/collectd/client/local.yml | 2 ++ .../classes/system/collectd/client/output/carbon.yml | 14 ++++++++++++++ .../classes/system/collectd/client/output/heka.yml | 17 +++++++++++++++++ .../classes/system/collectd/remote_client/cluster.yml | 18 ++++++++++++++++++ .../system/collectd/remote_client/output/heka.yml | 15 +++++++++++++++ .../classes/system/collectd/remote_client/single.yml | 7 +++++++ 6 files changed, 73 insertions(+) create mode 100644 mcp/reclass/classes/system/collectd/client/local.yml create mode 100644 mcp/reclass/classes/system/collectd/client/output/carbon.yml create mode 100644 mcp/reclass/classes/system/collectd/client/output/heka.yml create mode 100644 mcp/reclass/classes/system/collectd/remote_client/cluster.yml create mode 100644 mcp/reclass/classes/system/collectd/remote_client/output/heka.yml create mode 100644 mcp/reclass/classes/system/collectd/remote_client/single.yml (limited to 'mcp/reclass/classes/system/collectd') diff --git a/mcp/reclass/classes/system/collectd/client/local.yml b/mcp/reclass/classes/system/collectd/client/local.yml new file mode 100644 index 000000000..b1c88431b --- /dev/null +++ b/mcp/reclass/classes/system/collectd/client/local.yml @@ -0,0 +1,2 @@ +classes: +- service.collectd.client diff --git a/mcp/reclass/classes/system/collectd/client/output/carbon.yml b/mcp/reclass/classes/system/collectd/client/output/carbon.yml new file mode 100644 index 000000000..47e8c73dc --- /dev/null +++ b/mcp/reclass/classes/system/collectd/client/output/carbon.yml @@ -0,0 +1,14 @@ +classes: +- service.collectd.client +parameters: + _param: + collectd_backend_carbon_host: localhost + collectd_backend_carbon_port: 2003 + collectd: + client: + enabled: true + backend: + carbon: + engine: carbon + host: ${_param:collectd_backend_carbon_host} + port: ${_param:collectd_backend_carbon_port} \ No newline at end of file diff --git a/mcp/reclass/classes/system/collectd/client/output/heka.yml b/mcp/reclass/classes/system/collectd/client/output/heka.yml new file mode 100644 index 000000000..9550961ca --- /dev/null +++ b/mcp/reclass/classes/system/collectd/client/output/heka.yml @@ -0,0 +1,17 @@ +classes: +- service.collectd.client +parameters: + _param: + collectd_metric_collector_host: 127.0.0.1 + collectd_metric_collector_port: 8325 + collectd: + client: + enabled: true + backend: + metric_collector: + engine: http + host: ${_param:collectd_metric_collector_host} + port: ${_param:collectd_metric_collector_port} + read_interval: 10 + use_fqdn: false + syslog_logging: false diff --git a/mcp/reclass/classes/system/collectd/remote_client/cluster.yml b/mcp/reclass/classes/system/collectd/remote_client/cluster.yml new file mode 100644 index 000000000..1edced034 --- /dev/null +++ b/mcp/reclass/classes/system/collectd/remote_client/cluster.yml @@ -0,0 +1,18 @@ +classes: +- system.collectd.remote_client.output.heka +- service.collectd.remote_client.cluster +parameters: + collectd: + remote_client: + automatic_starting: false + keepalived: + cluster: + instance: + stacklight_monitor_vip: + notify_action: + master: + - service remote_collectd start + backup: + - service remote_collectd stop + fault: + - service remote_collectd stop diff --git a/mcp/reclass/classes/system/collectd/remote_client/output/heka.yml b/mcp/reclass/classes/system/collectd/remote_client/output/heka.yml new file mode 100644 index 000000000..a5a509d04 --- /dev/null +++ b/mcp/reclass/classes/system/collectd/remote_client/output/heka.yml @@ -0,0 +1,15 @@ +parameters: + _param: + collectd_remote_collector_port: 8326 + collectd: + remote_client: + enabled: true + backend: + remote_collector: + engine: http + host: ${_param:collectd_remote_collector_host} + port: ${_param:collectd_remote_collector_port} + timeout: 5 + read_interval: 10 + use_fqdn: false + syslog_logging: false diff --git a/mcp/reclass/classes/system/collectd/remote_client/single.yml b/mcp/reclass/classes/system/collectd/remote_client/single.yml new file mode 100644 index 000000000..f49e40db7 --- /dev/null +++ b/mcp/reclass/classes/system/collectd/remote_client/single.yml @@ -0,0 +1,7 @@ +classes: +- system.collectd.remote_client.output.heka +- service.collectd.remote_client.single +parameters: + collectd: + remote_client: + automatic_starting: true -- cgit 1.2.3-korg