Add models with mitaka/newton os releases for maintenance purposes
Change-Id: I555bf37aba6c48be4d3513bb8f413fb809b6b25c
diff --git a/classes/cluster/virtual-mcp-newton-ovs/stacklight/client.yml b/classes/cluster/virtual-mcp-newton-ovs/stacklight/client.yml
new file mode 100644
index 0000000..4f56d87
--- /dev/null
+++ b/classes/cluster/virtual-mcp-newton-ovs/stacklight/client.yml
@@ -0,0 +1,6 @@
+classes:
+- system.collectd.client.output.heka
+- system.heka.log_collector.single
+- system.heka.metric_collector.single
+- cluster.virtual-mcp-newton-ovs.stacklight
+- service.grafana.collector
diff --git a/classes/cluster/virtual-mcp-newton-ovs/stacklight/init.yml b/classes/cluster/virtual-mcp-newton-ovs/stacklight/init.yml
new file mode 100644
index 0000000..0b04034
--- /dev/null
+++ b/classes/cluster/virtual-mcp-newton-ovs/stacklight/init.yml
@@ -0,0 +1,59 @@
+parameters:
+ _param:
+ stacklight_monitor_hostname: mon
+ stacklight_monitor_node01_hostname: mon01
+ stacklight_monitor_node02_hostname: mon02
+ stacklight_monitor_node03_hostname: mon03
+ stacklight_monitor_address: 172.16.10.253
+ stacklight_monitor_node01_address: 172.16.10.100
+ stacklight_monitor_node02_address: 172.16.10.101
+ stacklight_monitor_node03_address: 172.16.10.102
+ stacklight_telemetry_node01_address: ${_param:stacklight_monitor_node01_address}
+ stacklight_log_address: ${_param:stacklight_monitor_address}
+ stacklight_telemetry_address: ${_param:stacklight_monitor_address}
+ heka_elasticsearch_host: ${_param:stacklight_monitor_address}
+ heka_influxdb_host: ${_param:stacklight_monitor_node01_address}
+ heka_aggregator_host: ${_param:stacklight_monitor_address}
+ aggregator_port: 5565
+ grafana_user: admin
+ grafana_password: password
+ grafana_influxdb_host: ${_param:stacklight_monitor_node01_address}
+ elasticsearch_port: 9200
+ influxdb_stacklight_password: lmapass
+ influxdb_admin_password: password
+ influxdb_port: 8086
+ influxdb_database: lma
+ influxdb_user: lma
+ influxdb_password: lmapass
+ nagios_host: ${_param:stacklight_monitor_address}
+ nagios_status_port: 8001
+ nagios_username: nagiosadmin
+ nagios_password: secret
+ nagios_notification_smtp_server: 127.0.0.1
+ nagios_notification_from: 'nagios@localhost'
+ nagios_notification_email: 'root@localhost'
+ stacklight_environment: ${_param:cluster_domain}
+ stacklight_notification_topic: stacklight_notifications
+ linux:
+ network:
+ host:
+ mon:
+ address: ${_param:stacklight_monitor_address}
+ names:
+ - ${_param:stacklight_monitor_hostname}
+ - ${_param:stacklight_monitor_hostname}.${_param:cluster_domain}
+ mon01:
+ address: ${_param:stacklight_monitor_node01_address}
+ names:
+ - ${_param:stacklight_monitor_node01_hostname}
+ - ${_param:stacklight_monitor_node01_hostname}.${_param:cluster_domain}
+ mon02:
+ address: ${_param:stacklight_monitor_node02_address}
+ names:
+ - ${_param:stacklight_monitor_node02_hostname}
+ - ${_param:stacklight_monitor_node02_hostname}.${_param:cluster_domain}
+ mon03:
+ address: ${_param:stacklight_monitor_node03_address}
+ names:
+ - ${_param:stacklight_monitor_node03_hostname}
+ - ${_param:stacklight_monitor_node03_hostname}.${_param:cluster_domain}
diff --git a/classes/cluster/virtual-mcp-newton-ovs/stacklight/proxy.yml b/classes/cluster/virtual-mcp-newton-ovs/stacklight/proxy.yml
new file mode 100644
index 0000000..8737b84
--- /dev/null
+++ b/classes/cluster/virtual-mcp-newton-ovs/stacklight/proxy.yml
@@ -0,0 +1,15 @@
+classes:
+- system.nginx.server.single
+- system.nginx.server.proxy.grafana_web
+- system.nginx.server.proxy.kibana_web
+- system.nginx.server.proxy.nagios_web
+- system.salt.minion.cert.proxy
+- cluster.virtual-mcp-newton-ovs
+parameters:
+ _param:
+ nginx_proxy_ssl:
+ enabled: true
+ authority: ${_param:salt_minion_ca_authority}
+ engine: salt
+ mode: secure
+ salt_minion_ca_host: cfg01.${_param:cluster_domain}
diff --git a/classes/cluster/virtual-mcp-newton-ovs/stacklight/server.yml b/classes/cluster/virtual-mcp-newton-ovs/stacklight/server.yml
new file mode 100644
index 0000000..00d3868
--- /dev/null
+++ b/classes/cluster/virtual-mcp-newton-ovs/stacklight/server.yml
@@ -0,0 +1,46 @@
+classes:
+- system.collectd.remote_client.cluster
+- system.heka.remote_collector.cluster
+- system.linux.system.repo.influxdb
+- system.heka.remote_collector.input.amqp
+- system.heka.aggregator.cluster
+- system.linux.system.repo.mcp.apt_mirantis.elastic
+- system.linux.system.repo.mcp.apt_mirantis.kibana
+- system.elasticsearch.server.cluster
+- system.elasticsearch.server.curator
+- system.kibana.server.single
+- system.grafana.server.single
+- system.nagios.server.cluster
+- cluster.virtual-mcp-newton-ovs
+- system.haproxy.proxy.listen.stacklight.elasticsearch
+- system.haproxy.proxy.listen.stacklight.kibana
+- system.haproxy.proxy.listen.stacklight.grafana
+- service.haproxy.proxy.single
+- system.keepalived.cluster.instance.stacklight_monitor_vip
+parameters:
+ _param:
+ collectd_remote_collector_host: ${_param:stacklight_monitor_address}
+ heka_amqp_host: ${_param:openstack_control_address}
+ kibana_elasticsearch_host: ${_param:stacklight_monitor_address}
+ keepalived_stacklight_monitor_vip_address: ${_param:stacklight_monitor_address}
+ keepalived_stacklight_monitor_vip_password: 'password'
+ keepalived_stacklight_monitor_vip_interface: ens4
+ cluster_vip_address: ${_param:stacklight_monitor_address}
+ cluster_elasticsearch_port: 9200
+ cluster_kibana_port: 5601
+ cluster_grafana_port: 3000
+ cluster_node01_name: mon01
+ cluster_node01_address: ${_param:stacklight_monitor_node01_address}
+ cluster_node02_name: mon02
+ cluster_node02_address: ${_param:stacklight_monitor_node02_address}
+ cluster_node03_name: mon03
+ cluster_node03_address: ${_param:stacklight_monitor_node03_address}
+ linux:
+ network:
+ interface:
+ ens4:
+ enabled: true
+ type: eth
+ proto: static
+ address: ${_param:single_address}
+ netmask: 255.255.255.0