aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/recipes
diff options
context:
space:
mode:
authorAreli, Fuss (af732p) <af732p@att.com>2018-04-09 18:15:42 +0300
committerMichael Lando <ml636r@att.com>2018-04-11 08:40:56 +0000
commit9d525f580b866778dc3417a06d98b96c70857efe (patch)
tree2e9d57d25c28f52857185e86f3d38e4b0c8183c2 /catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/recipes
parente2eef606174e0f996cdfb5590d1bd5f61b28731c (diff)
Replace ssl configuration
Replace ssl configuration from hardcoded into variable Change-Id: I1e393d311940944060d3f3f4e1093ee96eece777 Issue-ID: SDC-1176 Signed-off-by: Areli, Fuss (af732p) <af732p@att.com>
Diffstat (limited to 'catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/recipes')
-rw-r--r--catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/recipes/BE_2_setup_configuration.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/recipes/BE_2_setup_configuration.rb b/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/recipes/BE_2_setup_configuration.rb
index fd7e2f8c5f..c04b11b815 100644
--- a/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/recipes/BE_2_setup_configuration.rb
+++ b/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/recipes/BE_2_setup_configuration.rb
@@ -12,7 +12,9 @@ template "titan.properties" do
:CASSANDRA_USR => node['cassandra'][:cassandra_user],
:rep_factor => replication_factor,
:DC_NAME => node['cassandra'][:cluster_name]+node.chef_environment,
- :titan_connection_timeout => node['cassandra']['titan_connection_timeout']
+ :titan_connection_timeout => node['cassandra']['titan_connection_timeout'],
+ :cassandra_traststore_password => node['cassandra'][:truststore_password],
+ :cassandra_ssl_enabled => "#{ENV['cassandra_ssl_enabled']}"
})
end
@@ -34,8 +36,9 @@ template "catalog-be-config" do
:socket_connect_timeout => node['cassandra']['socket_connect_timeout'],
:socket_read_timeout => node['cassandra']['socket_read_timeout'],
:cassandra_pwd => node['cassandra'][:cassandra_password],
- :cassandra_usr => node['cassandra'][:cassandra_user]
-
+ :cassandra_usr => node['cassandra'][:cassandra_user],
+ :cassandra_traststore_password => node['cassandra'][:truststore_password],
+ :cassandra_ssl_enabled => "#{ENV['cassandra_ssl_enabled']}"
})
end