Setup os-ha-contrail for FIP
- add vsrx hostname
- add analytics hostnames
- add nat and forwarding on ens3 interface
- add ubuntu and cirros images
- add flavors
+ os-ha-contrail-40
Change-Id: Iba55829db9fb147acd64a03148705d5e7542bdfe
Closes-Bug: PROD-15927
diff --git a/classes/cluster/os-ha-contrail/infra/config.yml b/classes/cluster/os-ha-contrail/infra/config.yml
index a96d05d..d95205e 100755
--- a/classes/cluster/os-ha-contrail/infra/config.yml
+++ b/classes/cluster/os-ha-contrail/infra/config.yml
@@ -36,6 +36,9 @@
- system.mysql.client.database.neutron
- system.reclass.storage.system.openstack_control_cluster
- system.reclass.storage.system.opencontrail_control_cluster
+- system.glance.client.image.cirros
+- system.glance.client.image.ubuntu_xenial
+- system.nova.client.flavor.default
- cluster.os-ha-contrail.openstack.proxy
- cluster.os-ha-contrail
parameters:
@@ -49,6 +52,11 @@
salt_minion_ca_host: ${linux:network:fqdn}
salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
linux:
+ system:
+ kernel:
+ sysctl:
+ net.ipv4.conf.ens3.forwarding: 1
+ net.ipv4.conf.ens3.send_redirects: 0
network:
interface:
ens4:
@@ -57,6 +65,12 @@
proto: static
address: ${_param:single_address}
netmask: 255.255.255.0
+ # This is workaround for different interface
+ pre_up_cmds:
+ - "iptables -t nat -A POSTROUTING -o ens3 -j MASQUERADE"
+ post_down_cmds:
+ - "iptables -t nat -F POSTROUTING"
+
nginx:
server:
site: