Merge "Add system level reclass for panko"
diff --git a/apache/server/site/panko.yml b/apache/server/site/panko.yml
new file mode 100644
index 0000000..8e4854d
--- /dev/null
+++ b/apache/server/site/panko.yml
@@ -0,0 +1,32 @@
+parameters:
+ _param:
+ panko_api_workers: 2
+ apache_panko_api_host: ${linux:network:fqdn}
+ apache_panko_api_address: ${_param:single_address}
+ apache_panko_api_port: 8977
+ apache:
+ server:
+ site:
+ panko:
+ enabled: false
+ available: true
+ type: wsgi
+ name: panko
+ host:
+ name: ${_param:apache_panko_api_host}
+ address: ${_param:apache_panko_api_address}
+ port: ${_param:apache_panko_api_port}
+ log:
+ custom:
+ format: >-
+ %v:%p %{X-Forwarded-For}i %h %l %u %t \"%r\" %>s %D %O \"%{Referer}i\" \"%{User-Agent}i\"
+ wsgi:
+ daemon_process: panko-api
+ processes: ${_param:panko_api_workers}
+ threads: 1
+ user: panko
+ group: panko
+ display_name: '%{GROUP}'
+ script_alias: '/ /usr/bin/panko-api'
+ application_group: '%{GLOBAL}'
+ authorization: 'On'
diff --git a/haproxy/proxy/listen/openstack/panko.yml b/haproxy/proxy/listen/openstack/panko.yml
new file mode 100644
index 0000000..51eb030
--- /dev/null
+++ b/haproxy/proxy/listen/openstack/panko.yml
@@ -0,0 +1,23 @@
+parameters:
+ haproxy:
+ proxy:
+ listen:
+ panko_api:
+ type: general-service
+ check: false
+ binds:
+ - address: ${_param:cluster_vip_address}
+ port: 8977
+ servers:
+ - name: ${_param:cluster_node01_hostname}
+ host: ${_param:cluster_node01_address}
+ port: 8977
+ params: check
+ - name: ${_param:cluster_node02_hostname}
+ host: ${_param:cluster_node02_address}
+ port: 8977
+ params: check
+ - name: ${_param:cluster_node03_hostname}
+ host: ${_param:cluster_node03_address}
+ port: 8977
+ params: check
\ No newline at end of file
diff --git a/panko/server/cluster.yml b/panko/server/cluster.yml
new file mode 100644
index 0000000..d2d4b9b
--- /dev/null
+++ b/panko/server/cluster.yml
@@ -0,0 +1,6 @@
+classes:
+- service.panko.server.cluster
+- service.haproxy.proxy.single
+- system.apache.server.site.panko
+- system.haproxy.proxy.listen.openstack.panko
+- system.keepalived.cluster.instance.openstack_telemetry_vip
\ No newline at end of file