summaryrefslogtreecommitdiffstats
path: root/cookbooks
diff options
context:
space:
mode:
authorVenkata Harish K Kajur <vk250x@att.com>2017-12-05 12:19:20 -0500
committerVenkata Harish K Kajur <vk250x@att.com>2017-12-05 12:19:30 -0500
commit0022602f55069a7e1b62e175e9ec79143a218fb5 (patch)
tree915eb2e69a27034a81aeebbc6934e645976ebb5b /cookbooks
parente721463268f564f849c7ede558e3900476aaa4fa (diff)
Update the titan props to enable cassandra
Issue-ID: AAI-548 Change-Id: I90332d147b747f7772d9b5c67480ed5b6e939787 Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
Diffstat (limited to 'cookbooks')
-rw-r--r--cookbooks/aai-resources/aai-resources-config/attributes/titan-cached.rb3
-rw-r--r--cookbooks/aai-resources/aai-resources-config/attributes/titan-realtime.rb3
-rw-r--r--cookbooks/aai-resources/aai-resources-config/templates/default/aai-resources-config/titan-cached.properties4
-rw-r--r--cookbooks/aai-resources/aai-resources-config/templates/default/aai-resources-config/titan-realtime.properties4
4 files changed, 8 insertions, 6 deletions
diff --git a/cookbooks/aai-resources/aai-resources-config/attributes/titan-cached.rb b/cookbooks/aai-resources/aai-resources-config/attributes/titan-cached.rb
index 103583b..59d86a0 100644
--- a/cookbooks/aai-resources/aai-resources-config/attributes/titan-cached.rb
+++ b/cookbooks/aai-resources/aai-resources-config/attributes/titan-cached.rb
@@ -1,6 +1,7 @@
node.default["aai-resources-config"]["STORAGE_HOSTNAME"] = 'localhost'
+node.default["aai-resources-config"]["STORAGE_BACKEND"] = 'hbase'
node.default["aai-resources-config"]["STORAGE_HBASE_TABLE"] = 'aaigraph.dev'
node.default["aai-resources-config"]["STORAGE_HBASE_ZOOKEEPER_ZNODE_PARENT"] = '/hbase'
node.default["aai-resources-config"]["DB_CACHE_CLEAN_WAIT"] = 20
node.default["aai-resources-config"]["DB_CACHE_TIME"] = 180000
-node.default["aai-resources-config"]["DB_CACHE_SIZE"] = 0.3 \ No newline at end of file
+node.default["aai-resources-config"]["DB_CACHE_SIZE"] = 0.3
diff --git a/cookbooks/aai-resources/aai-resources-config/attributes/titan-realtime.rb b/cookbooks/aai-resources/aai-resources-config/attributes/titan-realtime.rb
index c289a63..0673592 100644
--- a/cookbooks/aai-resources/aai-resources-config/attributes/titan-realtime.rb
+++ b/cookbooks/aai-resources/aai-resources-config/attributes/titan-realtime.rb
@@ -1,3 +1,4 @@
node.default["aai-resources-config"]["STORAGE_HOSTNAME"] = 'localhost'
+node.default["aai-resources-config"]["STORAGE_BACKEND"] = 'hbase'
node.default["aai-resources-config"]["STORAGE_HBASE_TABLE"] = 'aaigraph.dev'
-node.default["aai-resources-config"]["STORAGE_HBASE_ZOOKEEPER_ZNODE_PARENT"] = '/hbase' \ No newline at end of file
+node.default["aai-resources-config"]["STORAGE_HBASE_ZOOKEEPER_ZNODE_PARENT"] = '/hbase'
diff --git a/cookbooks/aai-resources/aai-resources-config/templates/default/aai-resources-config/titan-cached.properties b/cookbooks/aai-resources/aai-resources-config/templates/default/aai-resources-config/titan-cached.properties
index d6c9c2d..ac6520a 100644
--- a/cookbooks/aai-resources/aai-resources-config/templates/default/aai-resources-config/titan-cached.properties
+++ b/cookbooks/aai-resources/aai-resources-config/templates/default/aai-resources-config/titan-cached.properties
@@ -1,6 +1,6 @@
# the following parameters are not reloaded automatically and require a manual bounce
query.fast-property=true
-storage.backend=hbase
+storage.backend=<%= STORAGE_BACKEND %>
storage.hostname=<%= @STORAGE_HOSTNAME %>
#schema.default=none
storage.lock.wait-time=300
@@ -10,4 +10,4 @@ storage.hbase.ext.zookeeper.znode.parent=<%= @STORAGE_HBASE_ZOOKEEPER_ZNODE_PARE
cache.db-cache = true
cache.db-cache-clean-wait = <%= @DB_CACHE_CLEAN_WAIT %>
cache.db-cache-time = <%= @DB_CACHE_TIME %>
-cache.db-cache-size = <%= @DB_CACHE_SIZE %> \ No newline at end of file
+cache.db-cache-size = <%= @DB_CACHE_SIZE %>
diff --git a/cookbooks/aai-resources/aai-resources-config/templates/default/aai-resources-config/titan-realtime.properties b/cookbooks/aai-resources/aai-resources-config/templates/default/aai-resources-config/titan-realtime.properties
index 2935cc1..9894849 100644
--- a/cookbooks/aai-resources/aai-resources-config/templates/default/aai-resources-config/titan-realtime.properties
+++ b/cookbooks/aai-resources/aai-resources-config/templates/default/aai-resources-config/titan-realtime.properties
@@ -1,6 +1,6 @@
# the following parameters are not reloaded automatically and require a manual bounce
query.fast-property=true
-storage.backend=hbase
+storage.backend=<%= STORAGE_BACKEND %>
storage.hostname=<%= @STORAGE_HOSTNAME %>
#schema.default=none
storage.lock.wait-time=300
@@ -10,4 +10,4 @@ storage.hbase.ext.zookeeper.znode.parent=<%= @STORAGE_HBASE_ZOOKEEPER_ZNODE_PARE
cache.db-cache = false
#cache.db-cache-clean-wait = 20
#cache.db-cache-time = 180000
-#cache.db-cache-size = 0.5 \ No newline at end of file
+#cache.db-cache-size = 0.5