Add redis password parameter
Redis server API was not protected with a password
by default.
To fix this issue we need to provide a way to
configure redis with authentification in salt-formula.
This patch addresses the problem for redis used
by contrail analytics.
If redis password is not set in the model then redis
will be configured without password.
Co-Authored-By Gleb Zimin <gzimin@mirantis.com>
Co-Authored-By Pavel Svimbersky <psvimbersky@mirantis.com>
Change-Id: I05813169be38ece1bd592d73a3ba1f4c7502d602
Related-Prod: PROD-22096
diff --git a/metadata/service/control/control.yml b/metadata/service/control/control.yml
index c3bb5d1..079e222 100644
--- a/metadata/service/control/control.yml
+++ b/metadata/service/control/control.yml
@@ -10,6 +10,7 @@
keystone_admin_password: 'none'
keystone_service_token: 'none'
openstack_region: RegionOne
+ redis_password: 'none'
opencontrail:
common:
version: ${_param:opencontrail_version}
@@ -125,6 +126,7 @@
cache:
engine: redis
host: ${_param:cluster_local_address}
+ password: ${_param:redis_password}
port: 6379
members:
- host: ${_param:cluster_node01_address}