Merge "Add gluster configuration for Gnocchi"
diff --git a/.releasenotes/notes/smtp_tls-907be4451c86b669.yaml b/.releasenotes/notes/smtp_tls-907be4451c86b669.yaml
new file mode 100644
index 0000000..3e79c8f
--- /dev/null
+++ b/.releasenotes/notes/smtp_tls-907be4451c86b669.yaml
@@ -0,0 +1,18 @@
+---
+summary: >
+ Additional option for push notification service to work with SMTP server
+
+features:
+ - Earlier the push notification service considered SMTP server working only under TLS.
+ In case of custom SMPT servers which use non-TLS connection the push notification service is
+ not working properly. This patch added the explicit definition of TLS using.
+ To define this parameter you need to set 'pushkin_smtp_use_tls' variable on cluster level metadata.
+
+ Example:
+ .. code-block:: yaml
+ parameters:
+ _param:
+ pushkin_smtp_use_tls: true
+
+fixes:
+ - related US: https://mirantis.jira.com/browse/PROD-14976
diff --git a/docker/swarm/stack/pushkin.yml b/docker/swarm/stack/pushkin.yml
index 22a921d..55f1fd6 100644
--- a/docker/swarm/stack/pushkin.yml
+++ b/docker/swarm/stack/pushkin.yml
@@ -11,6 +11,7 @@
pushkin_db_host: ${_param:haproxy_postgresql_bind_host}
pushkin_smtp_host: smtp.gmail.com
pushkin_smtp_port: 587
+ pushkin_smtp_use_tls: true
webhook_from: your_sender@mail.com
pushkin_email_sender_password: your_sender_password
webhook_recipients: "recepient1@mail.com,recepient2@mail.com"
@@ -38,6 +39,7 @@
EMAIL_SENDER_PASSWORD: ${_param:pushkin_email_sender_password}
SMTP_HOST: ${_param:pushkin_smtp_host}
SMTP_PORT: ${_param:pushkin_smtp_port}
+ SMTP_USE_TLS: ${_param:pushkin_smtp_use_tls}
WEBHOOK_RECIPIENTS: ${_param:webhook_recipients}
WEBHOOK_LOGIN_ID: ${_param:webhook_login_id}
WEBHOOK_APPLICATION_ID: ${_param:webhook_application_id}
diff --git a/gnocchi/server/cluster.yml b/gnocchi/server/cluster.yml
index e5a4650..bbae551 100644
--- a/gnocchi/server/cluster.yml
+++ b/gnocchi/server/cluster.yml
@@ -4,3 +4,7 @@
- system.apache.server.site.gnocchi
- system.haproxy.proxy.listen.openstack.gnocchi
- system.keepalived.cluster.instance.openstack_telemetry_vip
+parameters:
+ gnocchi:
+ server:
+ enable_proxy_headers_parsing: true