Add infra_proxy_* classes in reclass storage
This will deploy proxy (Nginx) nodes for both OpenStack and StackLight
services.
diff --git a/reclass/storage/system/infra_proxy_cluster.yml b/reclass/storage/system/infra_proxy_cluster.yml
new file mode 100644
index 0000000..f7c7932
--- /dev/null
+++ b/reclass/storage/system/infra_proxy_cluster.yml
@@ -0,0 +1,29 @@
+parameters:
+ _param:
+ infra_proxy_node01_hostname: prx01
+ infra_proxy_node02_hostname: prx02
+ reclass:
+ storage:
+ node:
+ infra_proxy_node01:
+ name: ${_param:infra_proxy_node01_hostname}
+ domain: ${_param:cluster_domain}
+ classes:
+ - cluster.${_param:cluster_name}.openstack.proxy
+ - cluster.${_param:cluster_name}.stacklight.proxy
+ params:
+ salt_master_host: ${_param:reclass_config_master}
+ linux_system_codename: trusty
+ single_address: ${_param:infra_proxy_node01_address}
+ keepalived_vip_priority: 102
+ infra_proxy_node02:
+ name: ${_param:infra_proxy_node02_hostname}
+ domain: ${_param:cluster_domain}
+ classes:
+ - cluster.${_param:cluster_name}.openstack.proxy
+ - cluster.${_param:cluster_name}.stacklight.proxy
+ params:
+ salt_master_host: ${_param:reclass_config_master}
+ linux_system_codename: trusty
+ single_address: ${_param:infra_proxy_node02_address}
+ keepalived_vip_priority: 101
diff --git a/reclass/storage/system/infra_proxy_single.yml b/reclass/storage/system/infra_proxy_single.yml
new file mode 100644
index 0000000..a245e8c
--- /dev/null
+++ b/reclass/storage/system/infra_proxy_single.yml
@@ -0,0 +1,16 @@
+parameters:
+ _param:
+ openstack_proxy_node01_hostname: prx01
+ reclass:
+ storage:
+ node:
+ openstack_proxy_node01:
+ name: ${_param:openstack_proxy_node01_hostname}
+ domain: ${_param:cluster_domain}
+ classes:
+ - cluster.${_param:cluster_name}.openstack.proxy
+ - cluster.${_param:cluster_name}.stacklight.proxy
+ params:
+ salt_master_host: ${_param:reclass_config_master}
+ linux_system_codename: trusty
+ single_address: ${_param:openstack_proxy_node01_address}
diff --git a/salt/control/cluster/infra_proxy_cluster.yml b/salt/control/cluster/infra_proxy_cluster.yml
new file mode 100644
index 0000000..c82a947
--- /dev/null
+++ b/salt/control/cluster/infra_proxy_cluster.yml
@@ -0,0 +1,22 @@
+parameters:
+ salt:
+ control:
+ size:
+ infra.proxy:
+ cpu: 32
+ ram: 65536
+ disk_profile: small
+ net_profile: default
+ cluster:
+ internal:
+ domain: ${_param:cluster_domain}
+ engine: virt
+ node:
+ prx01:
+ provider: kvm01.${_param:cluster_domain}
+ image: ${_param:salt_control_trusty_image}
+ size: infra.proxy
+ prx02:
+ provider: kvm02.${_param:cluster_domain}
+ image: ${_param:salt_control_trusty_image}
+ size: infra.proxy
diff --git a/salt/control/cluster/infra_proxy_single.yml b/salt/control/cluster/infra_proxy_single.yml
new file mode 100644
index 0000000..0cfb741
--- /dev/null
+++ b/salt/control/cluster/infra_proxy_single.yml
@@ -0,0 +1,18 @@
+parameters:
+ salt:
+ control:
+ size:
+ infra.proxy:
+ cpu: 32
+ ram: 65536
+ disk_profile: small
+ net_profile: default
+ cluster:
+ internal:
+ domain: ${_param:cluster_domain}
+ engine: virt
+ node:
+ prx01:
+ provider: kvm01.${_param:cluster_domain}
+ image: ${_param:salt_control_trusty_image}
+ size: infra.proxy