aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes
diff options
context:
space:
mode:
authormahendrr <mahendra.raghuwanshi@amdocs.com>2019-04-18 10:39:30 +0000
committerOfir Sonsino <ofir.sonsino@intl.att.com>2019-04-30 18:51:18 +0000
commitf454e706d5e40bd014eb3a54acdd9fed112e0da5 (patch)
tree88aaf08e00b437b84c8b1ba79f880d82cde516d8 /sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes
parent20d930a11a1a08722bde76378696e7fae1ba1e5e (diff)
Upgrade SDC to use common cassandra cluster
Change-Id: Ib6a45de3b10cb57466b7b3ef2e18b2fe07639c0f Issue-ID: SDC-2199 Signed-off-by: mahendrr <mahendra.raghuwanshi@amdocs.com>
Diffstat (limited to 'sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes')
-rw-r--r--sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/01-configureCassandra.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/01-configureCassandra.rb b/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/01-configureCassandra.rb
index 47ab456dec..5b05e9be57 100644
--- a/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/01-configureCassandra.rb
+++ b/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/01-configureCassandra.rb
@@ -1,5 +1,5 @@
cluster_name = ''
-cluster_name = node['cassandra'][:cluster_name]+node.chef_environment
+cluster_name = node['cassandra'][:cluster_name]
cas_ips=''
cas_ips=node['Nodes'][:CS]
@@ -45,7 +45,7 @@ template "cassandra-rackdc.properties" do
group "cassandra"
mode "0755"
variables ({
- :dc => cluster_name,
- :rack => "Rack"+"#{rackNum}-"+node.chef_environment
+ :dc => node['cassandra']['datacenter_name'],
+ :rack => "Rack"+"#{rackNum}"
})
-end \ No newline at end of file
+end