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 --- .../classes/system/rabbitmq/server/cluster.yml | 4 ++++ .../classes/system/rabbitmq/server/single.yml | 2 ++ .../classes/system/rabbitmq/server/vhost/catalog.yml | 20 ++++++++++++++++++++ .../system/rabbitmq/server/vhost/monitoring.yml | 8 ++++++++ .../system/rabbitmq/server/vhost/openstack.yml | 20 ++++++++++++++++++++ 5 files changed, 54 insertions(+) create mode 100644 mcp/reclass/classes/system/rabbitmq/server/cluster.yml create mode 100644 mcp/reclass/classes/system/rabbitmq/server/single.yml create mode 100644 mcp/reclass/classes/system/rabbitmq/server/vhost/catalog.yml create mode 100644 mcp/reclass/classes/system/rabbitmq/server/vhost/monitoring.yml create mode 100644 mcp/reclass/classes/system/rabbitmq/server/vhost/openstack.yml (limited to 'mcp/reclass/classes/system/rabbitmq') diff --git a/mcp/reclass/classes/system/rabbitmq/server/cluster.yml b/mcp/reclass/classes/system/rabbitmq/server/cluster.yml new file mode 100644 index 000000000..c9de9a8bc --- /dev/null +++ b/mcp/reclass/classes/system/rabbitmq/server/cluster.yml @@ -0,0 +1,4 @@ +classes: +- service.rabbitmq.server.cluster +- service.keepalived.cluster.single +- service.haproxy.proxy.single \ No newline at end of file diff --git a/mcp/reclass/classes/system/rabbitmq/server/single.yml b/mcp/reclass/classes/system/rabbitmq/server/single.yml new file mode 100644 index 000000000..6183f8197 --- /dev/null +++ b/mcp/reclass/classes/system/rabbitmq/server/single.yml @@ -0,0 +1,2 @@ +classes: +- service.rabbitmq.server.single diff --git a/mcp/reclass/classes/system/rabbitmq/server/vhost/catalog.yml b/mcp/reclass/classes/system/rabbitmq/server/vhost/catalog.yml new file mode 100644 index 000000000..23cb0f216 --- /dev/null +++ b/mcp/reclass/classes/system/rabbitmq/server/vhost/catalog.yml @@ -0,0 +1,20 @@ +parameters: + rabbitmq: + server: + host: + '/murano': + enabled: true + user: openstack + password: ${_param:rabbitmq_murano_agent_password} + policies: + - name: HA + pattern: '^(?!amq\.).*' + definition: '{"ha-mode": "all", "message-ttl": 120000}' + admin: + name: admin + password: zeQuooQu47eed8esahpie2Lai8En9ohp + bind: + address: ${_param:single_address} + management: + bind: + address: ${_param:single_address} diff --git a/mcp/reclass/classes/system/rabbitmq/server/vhost/monitoring.yml b/mcp/reclass/classes/system/rabbitmq/server/vhost/monitoring.yml new file mode 100644 index 000000000..af272b9e5 --- /dev/null +++ b/mcp/reclass/classes/system/rabbitmq/server/vhost/monitoring.yml @@ -0,0 +1,8 @@ +parameters: + rabbitmq: + server: + host: + '/monitor': + enabled: true + user: monitor + password: ${_param:rabbitmq_monitor_password} diff --git a/mcp/reclass/classes/system/rabbitmq/server/vhost/openstack.yml b/mcp/reclass/classes/system/rabbitmq/server/vhost/openstack.yml new file mode 100644 index 000000000..962bc0adc --- /dev/null +++ b/mcp/reclass/classes/system/rabbitmq/server/vhost/openstack.yml @@ -0,0 +1,20 @@ +parameters: + rabbitmq: + server: + host: + '/': + enabled: true + user: guest + password: guest + policies: + - name: HA + pattern: '^(?!amq\.).*' + definition: '{"ha-mode": "all", "message-ttl": 120000}' + '/openstack': + enabled: true + user: openstack + password: ${_param:rabbitmq_openstack_password} + policies: + - name: HA + pattern: '^(?!amq\.).*' + definition: '{"ha-mode": "all", "message-ttl": 120000}' -- cgit 1.2.3-korg