Octavia manager services clusterization
Related-PROD: PROD-25309
Change-Id: I16476cb1fdbc499033c7fce8a91d8cb5cb817a00
diff --git a/neutron/client/service/octavia/cluster.yml b/neutron/client/service/octavia/cluster.yml
new file mode 100644
index 0000000..09191f2
--- /dev/null
+++ b/neutron/client/service/octavia/cluster.yml
@@ -0,0 +1,33 @@
+classes:
+- system.neutron.client.service.octavia
+
+parameters:
+ neutron:
+ client:
+ server:
+ octavia_identity:
+ endpoint_type: internalURL
+ network:
+ lb-mgmt-net:
+ port:
+ octavia-health-manager-listen-port-gtw01:
+ fixed_ips:
+ - ip_address: ${_param:octavia_health_manager_node01_address}
+ device_owner: Octavia:health-mgr
+ binding_host_id: ${_param:openstack_gateway_node01_hostname}
+ security_groups:
+ - lb-health-mgr-sec-grp
+ octavia-health-manager-listen-port-gtw02:
+ fixed_ips:
+ - ip_address: ${_param:octavia_health_manager_node02_address}
+ device_owner: Octavia:health-mgr
+ binding_host_id: ${_param:openstack_gateway_node02_hostname}
+ security_groups:
+ - lb-health-mgr-sec-grp
+ octavia-health-manager-listen-port-gtw03:
+ fixed_ips:
+ - ip_address: ${_param:octavia_health_manager_node03_address}
+ device_owner: Octavia:health-mgr
+ binding_host_id: ${_param:openstack_gateway_node03_hostname}
+ security_groups:
+ - lb-health-mgr-sec-grp
\ No newline at end of file
diff --git a/neutron/client/service/octavia/init.yml b/neutron/client/service/octavia/init.yml
new file mode 100644
index 0000000..57b7b65
--- /dev/null
+++ b/neutron/client/service/octavia/init.yml
@@ -0,0 +1,80 @@
+parameters:
+ neutron:
+ client:
+ server:
+ octavia_identity:
+ endpoint_type: internalURL
+ network:
+ lb-mgmt-net:
+ tenant: service
+ admin_state_up: True
+ subnet:
+ lb-mgmt-subnet:
+ cidr: ${_param:octavia_lb_mgmt_cidr}
+ allocation_pools:
+ - start: ${_param:octavia_lb_mgmt_allocation_pool_start}
+ end: ${_param:octavia_lb_mgmt_allocation_pool_end}
+ security_group:
+ lb-mgmt-sec-grp:
+ tenant: service
+ rules:
+ - 'direction': 'ingress'
+ 'ethertype': 'IPv4'
+ 'protocol': 'icmp'
+ - 'direction': 'ingress'
+ 'ethertype': 'IPv4'
+ 'protocol': 'TCP'
+ 'port_range_min': 22
+ 'port_range_max': 22
+ - 'direction': 'ingress'
+ 'ethertype': 'IPv4'
+ 'protocol': 'TCP'
+ 'port_range_min': 9443
+ 'port_range_max': 9443
+ - 'direction': 'ingress'
+ 'ethertype': 'IPv6'
+ 'protocol': 'icmpv6'
+ 'remote_ip_prefix': '::/0'
+ - 'direction': 'ingress'
+ 'ethertype': 'IPv6'
+ 'protocol': 'TCP'
+ 'port_range_min': 22
+ 'port_range_max': 22
+ 'remote_ip_prefix': '::/0'
+ - 'direction': 'ingress'
+ 'ethertype': 'IPv6'
+ 'protocol': 'TCP'
+ 'port_range_min': 9443
+ 'port_range_max': 9443
+ 'remote_ip_prefix': '::/0'
+ lb-health-mgr-sec-grp:
+ tenant: service
+ rules:
+ - 'direction': 'ingress'
+ 'ethertype': 'IPv4'
+ 'protocol': 'UDP'
+ 'port_range_min': 5555
+ 'port_range_max': 5555
+ - 'direction': 'ingress'
+ 'ethertype': 'IPv6'
+ 'protocol': 'UDP'
+ 'port_range_min': 5555
+ 'port_range_max': 5555
+ 'remote_ip_prefix': '::/0'
+
+ salt:
+ minion:
+ mine:
+ module:
+ list_octavia_networks:
+ mine_function: neutronng.list_networks
+ name: 'lb-mgmt-net'
+ profile: 'octavia_identity'
+ list_octavia_mgmt_security_groups:
+ mine_function: neutronng.list_security_groups
+ name: 'lb-mgmt-sec-grp'
+ profile: 'octavia_identity'
+ list_octavia_hm_ports:
+ mine_function: neutronng.list_ports
+ device_owner: 'Octavia:health-mgr'
+ profile: 'octavia_identity'
diff --git a/neutron/client/service/octavia/single.yml b/neutron/client/service/octavia/single.yml
new file mode 100644
index 0000000..b5b65ea
--- /dev/null
+++ b/neutron/client/service/octavia/single.yml
@@ -0,0 +1,19 @@
+classes:
+- system.neutron.client.service.octavia
+
+parameters:
+ neutron:
+ client:
+ server:
+ octavia_identity:
+ endpoint_type: internalURL
+ network:
+ lb-mgmt-net:
+ port:
+ octavia-health-manager-listen-port:
+ fixed_ips:
+ - ip_address: ${_param:octavia_health_manager_node01_address}
+ device_owner: Octavia:health-mgr
+ binding_host_id: ${_param:openstack_gateway_node01_hostname}
+ security_groups:
+ - lb-health-mgr-sec-grp