blob: 36edf3f8481ecc689e76015900ce507dd7ceb09d [file] [log] [blame]
Mohammed Naser547f21b2022-05-19 21:55:24 -04001# Copyright (c) 2022 VEXXHOST, Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14
15- name: Deploy cluster
16 kubernetes.core.k8s:
17 state: present
18 definition:
19 apiVersion: rabbitmq.com/v1beta1
20 kind: RabbitmqCluster
21 metadata:
22 name: "rabbitmq-{{ rabbitmq_cluster_name }}"
23 namespace: openstack
24 spec:
25 affinity:
26 nodeAffinity:
27 requiredDuringSchedulingIgnoredDuringExecution:
28 nodeSelectorTerms:
29 - matchExpressions:
30 - key: openstack-control-plane
31 operator: In
32 values:
33 - enabled
34 wait: true
35 wait_timeout: 600
36 wait_condition:
37 type: ClusterAvailable
38 status: "True"