summaryrefslogtreecommitdiffstats
path: root/cookbooks/aai-resources
diff options
context:
space:
mode:
Diffstat (limited to 'cookbooks/aai-resources')
-rw-r--r--cookbooks/aai-resources/aai-resources-auth/CHANGELOG.md13
-rw-r--r--cookbooks/aai-resources/aai-resources-auth/README.md68
-rw-r--r--cookbooks/aai-resources/aai-resources-auth/files/default/aai_keystore-devbin0 -> 4002 bytes
-rw-r--r--cookbooks/aai-resources/aai-resources-auth/metadata.rb7
-rw-r--r--cookbooks/aai-resources/aai-resources-auth/recipes/aai-resources-aai-keystore.rb8
-rw-r--r--cookbooks/aai-resources/aai-resources-config/CHANGELOG.md13
-rw-r--r--cookbooks/aai-resources/aai-resources-config/README.md68
-rw-r--r--cookbooks/aai-resources/aai-resources-config/attributes/aai-resources-config.rb15
-rw-r--r--cookbooks/aai-resources/aai-resources-config/attributes/preferredRoute.rb1
-rw-r--r--cookbooks/aai-resources/aai-resources-config/attributes/titan-cached.rb6
-rw-r--r--cookbooks/aai-resources/aai-resources-config/attributes/titan-realtime.rb3
-rw-r--r--cookbooks/aai-resources/aai-resources-config/metadata.rb7
-rw-r--r--cookbooks/aai-resources/aai-resources-config/recipes/aai-preferredRoute.rb11
-rw-r--r--cookbooks/aai-resources/aai-resources-config/recipes/aai-resources-config.rb78
-rw-r--r--cookbooks/aai-resources/aai-resources-config/recipes/createConfigDirectories.rb44
-rw-r--r--cookbooks/aai-resources/aai-resources-config/recipes/titan-cached.rb17
-rw-r--r--cookbooks/aai-resources/aai-resources-config/recipes/titan-realtime.rb14
-rw-r--r--cookbooks/aai-resources/aai-resources-config/templates/default/aai-resources-config/aaiconfig.properties79
-rw-r--r--cookbooks/aai-resources/aai-resources-config/templates/default/aai-resources-config/preferredRoute.txt1
-rw-r--r--cookbooks/aai-resources/aai-resources-config/templates/default/aai-resources-config/titan-cached.properties13
-rw-r--r--cookbooks/aai-resources/aai-resources-config/templates/default/aai-resources-config/titan-realtime.properties13
-rw-r--r--cookbooks/aai-resources/runlist-aai-resources.json10
22 files changed, 489 insertions, 0 deletions
diff --git a/cookbooks/aai-resources/aai-resources-auth/CHANGELOG.md b/cookbooks/aai-resources/aai-resources-auth/CHANGELOG.md
new file mode 100644
index 0000000..c58a274
--- /dev/null
+++ b/cookbooks/aai-resources/aai-resources-auth/CHANGELOG.md
@@ -0,0 +1,13 @@
+ajsc-aai-auth CHANGELOG
+=======================
+
+This file is used to list changes made in each version of the aai-resources-auth cookbook.
+
+0.1.0
+-----
+- [your_name] - Initial release of aai-resources-auth
+
+- - -
+Check the [Markdown Syntax Guide](http://daringfireball.net/projects/markdown/syntax) for help with Markdown.
+
+The [Github Flavored Markdown page](http://github.github.com/github-flavored-markdown/) describes the differences between markdown on github and standard markdown.
diff --git a/cookbooks/aai-resources/aai-resources-auth/README.md b/cookbooks/aai-resources/aai-resources-auth/README.md
new file mode 100644
index 0000000..b5157ab
--- /dev/null
+++ b/cookbooks/aai-resources/aai-resources-auth/README.md
@@ -0,0 +1,68 @@
+aai-resources-auth Cookbook
+======================
+TODO: Enter the cookbook description here.
+
+e.g.
+This cookbook makes your favorite breakfast sandwich.
+
+Requirements
+------------
+TODO: List your cookbook requirements. Be sure to include any requirements this cookbook has on platforms, libraries, other cookbooks, packages, operating systems, etc.
+
+e.g.
+#### packages
+- `toaster` - ajsc-aai-auth needs toaster to brown your bagel.
+
+Attributes
+----------
+TODO: List your cookbook attributes here.
+
+e.g.
+#### ajsc-aai-auth::default
+<table>
+ <tr>
+ <th>Key</th>
+ <th>Type</th>
+ <th>Description</th>
+ <th>Default</th>
+ </tr>
+ <tr>
+ <td><tt>['ajsc-aai-auth']['bacon']</tt></td>
+ <td>Boolean</td>
+ <td>whether to include bacon</td>
+ <td><tt>true</tt></td>
+ </tr>
+</table>
+
+Usage
+-----
+#### aai-resources-auth::default
+TODO: Write usage instructions for each cookbook.
+
+e.g.
+Just include `aai-resources-auth` in your node's `run_list`:
+
+```json
+{
+ "name":"my_node",
+ "run_list": [
+ "recipe[ajsc-aai-auth]"
+ ]
+}
+```
+
+Contributing
+------------
+TODO: (optional) If this is a public cookbook, detail the process for contributing. If this is a private cookbook, remove this section.
+
+e.g.
+1. Fork the repository on Github
+2. Create a named feature branch (like `add_component_x`)
+3. Write your change
+4. Write tests for your change (if applicable)
+5. Run the tests, ensuring they all pass
+6. Submit a Pull Request using Github
+
+License and Authors
+-------------------
+Authors: TODO: List authors
diff --git a/cookbooks/aai-resources/aai-resources-auth/files/default/aai_keystore-dev b/cookbooks/aai-resources/aai-resources-auth/files/default/aai_keystore-dev
new file mode 100644
index 0000000..3eef135
--- /dev/null
+++ b/cookbooks/aai-resources/aai-resources-auth/files/default/aai_keystore-dev
Binary files differ
diff --git a/cookbooks/aai-resources/aai-resources-auth/metadata.rb b/cookbooks/aai-resources/aai-resources-auth/metadata.rb
new file mode 100644
index 0000000..6b940b8
--- /dev/null
+++ b/cookbooks/aai-resources/aai-resources-auth/metadata.rb
@@ -0,0 +1,7 @@
+name 'aai-resources-auth'
+maintainer 'ATT'
+maintainer_email ''
+license 'All rights reserved'
+description 'Installs/Configures aai-resources-auth'
+long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
+version '1.0.0'
diff --git a/cookbooks/aai-resources/aai-resources-auth/recipes/aai-resources-aai-keystore.rb b/cookbooks/aai-resources/aai-resources-auth/recipes/aai-resources-aai-keystore.rb
new file mode 100644
index 0000000..3c55162
--- /dev/null
+++ b/cookbooks/aai-resources/aai-resources-auth/recipes/aai-resources-aai-keystore.rb
@@ -0,0 +1,8 @@
+cookbook_file "#{node['aai-resources-config']['PROJECT_HOME']}/bundleconfig/etc/auth/aai_keystore" do
+ source "aai_keystore-#{node['aai-resources-config']['AAIENV']}"
+ owner 'aaiadmin'
+ group 'aaiadmin'
+ mode '0755'
+ action :create
+end
+
diff --git a/cookbooks/aai-resources/aai-resources-config/CHANGELOG.md b/cookbooks/aai-resources/aai-resources-config/CHANGELOG.md
new file mode 100644
index 0000000..8752651
--- /dev/null
+++ b/cookbooks/aai-resources/aai-resources-config/CHANGELOG.md
@@ -0,0 +1,13 @@
+aai-resources-config CHANGELOG
+=========================
+
+This file is used to list changes made in each version of the ajsc-aai-config cookbook.
+
+0.1.0
+-----
+- [your_name] - Initial release of ajsc-aai-config
+
+- - -
+Check the [Markdown Syntax Guide](http://daringfireball.net/projects/markdown/syntax) for help with Markdown.
+
+The [Github Flavored Markdown page](http://github.github.com/github-flavored-markdown/) describes the differences between markdown on github and standard markdown.
diff --git a/cookbooks/aai-resources/aai-resources-config/README.md b/cookbooks/aai-resources/aai-resources-config/README.md
new file mode 100644
index 0000000..b71fb90
--- /dev/null
+++ b/cookbooks/aai-resources/aai-resources-config/README.md
@@ -0,0 +1,68 @@
+aai-resources-config Cookbook
+========================
+TODO: Enter the cookbook description here.
+
+e.g.
+This cookbook makes your favorite breakfast sandwich.
+
+Requirements
+------------
+TODO: List your cookbook requirements. Be sure to include any requirements this cookbook has on platforms, libraries, other cookbooks, packages, operating systems, etc.
+
+e.g.
+#### packages
+- `toaster` - aai-resources-config needs toaster to brown your bagel.
+
+Attributes
+----------
+TODO: List your cookbook attributes here.
+
+e.g.
+#### ajsc-aai-config::default
+<table>
+ <tr>
+ <th>Key</th>
+ <th>Type</th>
+ <th>Description</th>
+ <th>Default</th>
+ </tr>
+ <tr>
+ <td><tt>['ajsc-aai-config']['bacon']</tt></td>
+ <td>Boolean</td>
+ <td>whether to include bacon</td>
+ <td><tt>true</tt></td>
+ </tr>
+</table>
+
+Usage
+-----
+#### ajsc-aai-config::default
+TODO: Write usage instructions for each cookbook.
+
+e.g.
+Just include `ajsc-aai-config` in your node's `run_list`:
+
+```json
+{
+ "name":"my_node",
+ "run_list": [
+ "recipe[ajsc-aai-config]"
+ ]
+}
+```
+
+Contributing
+------------
+TODO: (optional) If this is a public cookbook, detail the process for contributing. If this is a private cookbook, remove this section.
+
+e.g.
+1. Fork the repository on Github
+2. Create a named feature branch (like `add_component_x`)
+3. Write your change
+4. Write tests for your change (if applicable)
+5. Run the tests, ensuring they all pass
+6. Submit a Pull Request using Github
+
+License and Authors
+-------------------
+Authors: TODO: List authors
diff --git a/cookbooks/aai-resources/aai-resources-config/attributes/aai-resources-config.rb b/cookbooks/aai-resources/aai-resources-config/attributes/aai-resources-config.rb
new file mode 100644
index 0000000..af27381
--- /dev/null
+++ b/cookbooks/aai-resources/aai-resources-config/attributes/aai-resources-config.rb
@@ -0,0 +1,15 @@
+node.default["aai-resources-config"]["AAIENV"] = 'devINT1'
+node.default["aai-resources-config"]["PROJECT_HOME"] = '/opt/app/aai-resources'
+node.default["aai-resources-config"]["LOGROOT"] = '/opt/aai/logroot'
+node.default["aai-resources-config"]["JAVA_HOME"] = '/usr/lib/jvm/java-8-openjdk-amd64'
+node.default["aai-resources-config"]["AAI_SERVER_URL_BASE"] = 'https://localhost:8443/aai/'
+node.default["aai-resources-config"]["AAI_SERVER_URL"] = 'https://localhost:8443/aai/v10/'
+node.default["aai-resources-config"]["AAI_GLOBAL_CALLBACK_URL"] = 'https://localhost:8443/aai/'
+node.default["aai-resources-config"]["AAI_TRUSTSTORE_FILENAME"] = 'aai_keystore'
+node.default["aai-resources-config"]["AAI_TRUSTSTORE_PASSWD_X"] = 'OBF:1vn21ugu1saj1v9i1v941sar1ugw1vo0'
+node.default["aai-resources-config"]["AAI_KEYSTORE_FILENAME"] = 'aai_keystore'
+node.default["aai-resources-config"]["AAI_KEYSTORE_PASSWD_X"] = 'OBF:1vn21ugu1saj1v9i1v941sar1ugw1vo0'
+node.default["aai-resources-config"]["TXN_HBASE_TABLE_NAME"] = 'aailogging.dev'
+node.default["aai-resources-config"]["TXN_ZOOKEEPER_QUORUM"] = 'localhost'
+node.default["aai-resources-config"]["TXN_ZOOKEEPER_PROPERTY_CLIENTPORT"] = '2181'
+node.default["aai-resources-config"]["TXN_HBASE_ZOOKEEPER_ZNODE_PARENT"] = '/hbase'
diff --git a/cookbooks/aai-resources/aai-resources-config/attributes/preferredRoute.rb b/cookbooks/aai-resources/aai-resources-config/attributes/preferredRoute.rb
new file mode 100644
index 0000000..21eb295
--- /dev/null
+++ b/cookbooks/aai-resources/aai-resources-config/attributes/preferredRoute.rb
@@ -0,0 +1 @@
+node.default["aai-resources-config"]["AAI_WORKLOAD_PREFERRED_ROUTE_KEY"] = 'MR1' \ No newline at end of file
diff --git a/cookbooks/aai-resources/aai-resources-config/attributes/titan-cached.rb b/cookbooks/aai-resources/aai-resources-config/attributes/titan-cached.rb
new file mode 100644
index 0000000..103583b
--- /dev/null
+++ b/cookbooks/aai-resources/aai-resources-config/attributes/titan-cached.rb
@@ -0,0 +1,6 @@
+node.default["aai-resources-config"]["STORAGE_HOSTNAME"] = 'localhost'
+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
diff --git a/cookbooks/aai-resources/aai-resources-config/attributes/titan-realtime.rb b/cookbooks/aai-resources/aai-resources-config/attributes/titan-realtime.rb
new file mode 100644
index 0000000..c289a63
--- /dev/null
+++ b/cookbooks/aai-resources/aai-resources-config/attributes/titan-realtime.rb
@@ -0,0 +1,3 @@
+node.default["aai-resources-config"]["STORAGE_HOSTNAME"] = 'localhost'
+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
diff --git a/cookbooks/aai-resources/aai-resources-config/metadata.rb b/cookbooks/aai-resources/aai-resources-config/metadata.rb
new file mode 100644
index 0000000..d32f4cf
--- /dev/null
+++ b/cookbooks/aai-resources/aai-resources-config/metadata.rb
@@ -0,0 +1,7 @@
+name 'aai-resources-config'
+maintainer 'ATT'
+maintainer_email ''
+license 'All rights reserved'
+description 'Installs/Configures aai-resources-config'
+long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
+version '1.0.0'
diff --git a/cookbooks/aai-resources/aai-resources-config/recipes/aai-preferredRoute.rb b/cookbooks/aai-resources/aai-resources-config/recipes/aai-preferredRoute.rb
new file mode 100644
index 0000000..b018237
--- /dev/null
+++ b/cookbooks/aai-resources/aai-resources-config/recipes/aai-preferredRoute.rb
@@ -0,0 +1,11 @@
+['preferredRoute.txt'].each do |file|
+ template "#{node['aai-resources-config']['PROJECT_HOME']}/bundleconfig/etc/appprops/#{file}" do
+ source "aai-resources-config/preferredRoute.txt"
+ owner "aaiadmin"
+ group "aaiadmin"
+ mode "0644"
+ variables(
+:AAI_WORKLOAD_PREFERRED_ROUTE_KEY => node["aai-resources-config"]["AAI_WORKLOAD_PREFERRED_ROUTE_KEY"]
+ )
+ end
+end \ No newline at end of file
diff --git a/cookbooks/aai-resources/aai-resources-config/recipes/aai-resources-config.rb b/cookbooks/aai-resources/aai-resources-config/recipes/aai-resources-config.rb
new file mode 100644
index 0000000..13f34c2
--- /dev/null
+++ b/cookbooks/aai-resources/aai-resources-config/recipes/aai-resources-config.rb
@@ -0,0 +1,78 @@
+################
+# Update aaiResourcesConfig.properties
+################
+include_recipe 'aai-resources-config::createConfigDirectories'
+
+['aaiconfig.properties'].each do |file|
+ template "#{node['aai-resources-config']['PROJECT_HOME']}/bundleconfig/etc/appprops/#{file}" do
+ source "aai-resources-config/aaiconfig.properties"
+ owner "aaiadmin"
+ group "aaiadmin"
+ mode "0644"
+ variables(
+:AAI_SERVER_URL_BASE => node["aai-resources-config"]["AAI_SERVER_URL_BASE"],
+:AAI_SERVER_URL => node["aai-resources-config"]["AAI_SERVER_URL"],
+:AAI_GLOBAL_CALLBACK_URL => node["aai-resources-config"]["AAI_GLOBAL_CALLBACK_URL"],
+:AAI_TRUSTSTORE_FILENAME => node["aai-resources-config"]["AAI_TRUSTSTORE_FILENAME"],
+:AAI_TRUSTSTORE_PASSWD_X => node["aai-resources-config"]["AAI_TRUSTSTORE_PASSWD_X"],
+:AAI_KEYSTORE_FILENAME => node["aai-resources-config"]["AAI_KEYSTORE_FILENAME"],
+:AAI_KEYSTORE_PASSWD_X => node["aai-resources-config"]["AAI_KEYSTORE_PASSWD_X"],
+:APPLICATION_SERVERS => node["aai-resources-config"]["APPLICATION_SERVERS"],
+:TXN_HBASE_TABLE_NAME => node["aai-resources-config"]["TXN_HBASE_TABLE_NAME"],
+:TXN_ZOOKEEPER_QUORUM => node["aai-resources-config"]["TXN_ZOOKEEPER_QUORUM"],
+:TXN_ZOOKEEPER_PROPERTY_CLIENTPORT => node["aai-resources-config"]["TXN_ZOOKEEPER_PROPERTY_CLIENTPORT"],
+:TXN_HBASE_ZOOKEEPER_ZNODE_PARENT => node["aai-resources-config"]["TXN_HBASE_ZOOKEEPER_ZNODE_PARENT"],
+:RESOURCE_VERSION_ENABLE_FLAG => node["aai-resources-config"]["RESOURCE_VERSION_ENABLE_FLAG"],
+ :AAI_NOTIFICATION_CURRENT_PACKAGE => node["aai-resources-config"]["AAI_NOTIFICATION_CURRENT_PACKAGE"],
+ :AAI_NOTIFICATION_CURRENT_VERSION => node["aai-resources-config"]["AAI_NOTIFICATION_CURRENT_VERSION"],
+ :AAI_NOTIFICATION_EVENT_DEFAULT_EVENT_STATUS => node["aai-resources-config"]["AAI_NOTIFICATION_EVENT_DEFAULT_EVENT_STATUS"],
+ :AAI_NOTIFICATION_EVENT_DEFAULT_EVENT_TYPE => node["aai-resources-config"]["AAI_NOTIFICATION_EVENT_DEFAULT_EVENT_TYPE"],
+ :AAI_NOTIFICATION_EVENT_DEFAULT_DOMAIN => node["aai-resources-config"]["AAI_NOTIFICATION_EVENT_DEFAULT_DOMAIN"],
+ :AAI_NOTIFICATION_EVENT_DEFAULT_SOURCE_NAME => node["aai-resources-config"]["AAI_NOTIFICATION_EVENT_DEFAULT_SOURCE_NAME"],
+ :AAI_NOTIFICATION_EVENT_DEFAULT_SEQUENCE_NUMBER => node["aai-resources-config"]["AAI_NOTIFICATION_EVENT_DEFAULT_SEQUENCE_NUMBER"],
+ :AAI_NOTIFICATION_EVENT_DEFAULT_SEVERITY => node["aai-resources-config"]["AAI_NOTIFICATION_EVENT_DEFAULT_SEVERITY"],
+ :AAI_NOTIFICATION_EVENT_DEFAULT_VERSION => node["aai-resources-config"]["AAI_NOTIFICATION_EVENT_DEFAULT_VERSION"],
+:AAI_DEFAULT_API_VERSION => node["aai-resources-config"]["AAI_DEFAULT_API_VERSION"]
+ )
+ end
+end
+
+#remote_directory "/opt/mso/etc/ecomp/mso/config/" do
+# source "mso-asdc-controller-config"
+# #cookbook "default is current"
+# files_mode "0700"
+# files_owner "jboss"
+# files_group "jboss"
+# mode "0755"
+# owner "jboss"
+# group "jboss"
+# overwrite true
+# recursive true
+# action :create
+#end
+
+
+################
+# Alternative example1
+# This updates all the timestamps
+# Seting preserve never changes the timestamp when the file is changed
+######
+# ruby_block "copy_recurse" do
+# block do
+# FileUtils.cp_r("#{Chef::Config[:file_cache_path]}/cookbooks/mso-config/files/default/mso-api-handler-config/.",\
+# "/opt/mso/etc/ecomp/mso/config/", :preserve => true)
+# end
+# action :run
+# end
+
+################
+# Alternative example2
+######
+# Dir.glob("#{Chef::Config[:file_cache_path]}/cookbooks/mso-config/files/default/mso-api-handler-config/*").sort.each do |entry|
+# cookbook_file "/opt/mso/etc/ecomp/mso/config/#{entry}" do
+# source entry
+# owner "root"
+# group "root"
+# mode 0755
+# end
+# end
diff --git a/cookbooks/aai-resources/aai-resources-config/recipes/createConfigDirectories.rb b/cookbooks/aai-resources/aai-resources-config/recipes/createConfigDirectories.rb
new file mode 100644
index 0000000..e944195
--- /dev/null
+++ b/cookbooks/aai-resources/aai-resources-config/recipes/createConfigDirectories.rb
@@ -0,0 +1,44 @@
+# Create or update the needed directories/links.
+# If the directory already exists, it is updated to match
+#
+# LOGROOT should already be created by the SWM installation script
+# It needs to run as root
+
+[
+ "#{node['aai-resources-config']['LOGROOT']}/AAI-RES",
+ "#{node['aai-resources-config']['LOGROOT']}/AAI-RES/data",
+ "#{node['aai-resources-config']['LOGROOT']}/AAI-RES/misc",
+ "#{node['aai-resources-config']['LOGROOT']}/AAI-RES/ajsc-jetty" ].each do |path|
+ directory path do
+ owner 'aaiadmin'
+ group 'aaiadmin'
+ mode '0755'
+ recursive=true
+ action :create
+ end
+end
+
+[ "#{node['aai-resources-config']['PROJECT_HOME']}/bundleconfig/etc/auth" ].each do |path|
+ directory path do
+ owner 'aaiadmin'
+ group 'aaiadmin'
+ mode '0777'
+ recursive=true
+ action :create
+ end
+end
+#Application logs
+link "#{node['aai-resources-config']['PROJECT_HOME']}/logs" do
+ to "#{node['aai-resources-config']['LOGROOT']}/AAI-RES"
+ owner 'aaiadmin'
+ group 'aaiadmin'
+ mode '0755'
+end
+
+#Make a link from /opt/app/aai-resources/scripts to /opt/app/aai-resources/bin
+link "#{node['aai-resources-config']['PROJECT_HOME']}/scripts" do
+ to "#{node['aai-resources-config']['PROJECT_HOME']}/bin"
+ owner 'aaiadmin'
+ group 'aaiadmin'
+ mode '0755'
+end
diff --git a/cookbooks/aai-resources/aai-resources-config/recipes/titan-cached.rb b/cookbooks/aai-resources/aai-resources-config/recipes/titan-cached.rb
new file mode 100644
index 0000000..53ada49
--- /dev/null
+++ b/cookbooks/aai-resources/aai-resources-config/recipes/titan-cached.rb
@@ -0,0 +1,17 @@
+['titan-cached.properties'].each do |file|
+ template "#{node['aai-resources-config']['PROJECT_HOME']}/bundleconfig/etc/appprops/#{file}" do
+ source "aai-resources-config/titan-cached.properties"
+ owner "aaiadmin"
+ group "aaiadmin"
+ mode "0644"
+ variables(
+:STORAGE_HOSTNAME => node["aai-resources-config"]["STORAGE_HOSTNAME"],
+:STORAGE_HBASE_TABLE => node["aai-resources-config"]["STORAGE_HBASE_TABLE"],
+:STORAGE_HBASE_ZOOKEEPER_ZNODE_PARENT => node["aai-resources-config"]["STORAGE_HBASE_ZOOKEEPER_ZNODE_PARENT"],
+:DB_CACHE_CLEAN_WAIT => node["aai-resources-config"]["DB_CACHE_CLEAN_WAIT"],
+:DB_CACHE_TIME => node["aai-resources-config"]["DB_CACHE_TIME"],
+:DB_CACHE_SIZE => node["aai-resources-config"]["DB_CACHE_SIZE"]
+ )
+ end
+end
+
diff --git a/cookbooks/aai-resources/aai-resources-config/recipes/titan-realtime.rb b/cookbooks/aai-resources/aai-resources-config/recipes/titan-realtime.rb
new file mode 100644
index 0000000..c456eb3
--- /dev/null
+++ b/cookbooks/aai-resources/aai-resources-config/recipes/titan-realtime.rb
@@ -0,0 +1,14 @@
+['titan-realtime.properties'].each do |file|
+ template "#{node['aai-resources-config']['PROJECT_HOME']}/bundleconfig/etc/appprops/#{file}" do
+ source "aai-resources-config/titan-realtime.properties"
+ owner "aaiadmin"
+ group "aaiadmin"
+ mode "0644"
+ variables(
+:STORAGE_HOSTNAME => node["aai-resources-config"]["STORAGE_HOSTNAME"],
+:STORAGE_HBASE_TABLE => node["aai-resources-config"]["STORAGE_HBASE_TABLE"],
+:STORAGE_HBASE_ZOOKEEPER_ZNODE_PARENT => node["aai-resources-config"]["STORAGE_HBASE_ZOOKEEPER_ZNODE_PARENT"]
+ )
+ end
+end
+
diff --git a/cookbooks/aai-resources/aai-resources-config/templates/default/aai-resources-config/aaiconfig.properties b/cookbooks/aai-resources/aai-resources-config/templates/default/aai-resources-config/aaiconfig.properties
new file mode 100644
index 0000000..37e5dcd
--- /dev/null
+++ b/cookbooks/aai-resources/aai-resources-config/templates/default/aai-resources-config/aaiconfig.properties
@@ -0,0 +1,79 @@
+####################################################################
+# REMEMBER TO THINK ABOUT ENVIRONMENTAL DIFFERENCES AND CHANGE THE
+# TEMPLATE AND *ALL* DATAFILES
+####################################################################
+
+aai.config.checktime=1000
+
+# this could come from siteconfig.pl?
+aai.config.nodename=AutomaticallyOverwritten
+
+
+
+aai.auth.cspcookies_on=false
+aai.dbmodel.filename=ex5.json
+
+aai.server.url.base=<%= @AAI_SERVER_URL_BASE %>
+aai.server.url=<%= @AAI_SERVER_URL %>
+aai.global.callback.url=<%= @AAI_GLOBAL_CALLBACK_URL %>
+
+aai.tools.enableBasicAuth=true
+aai.tools.username=AAI
+aai.tools.password=AAI
+
+aai.truststore.filename=<%= @AAI_TRUSTSTORE_FILENAME %>
+aai.truststore.passwd.x=<%= @AAI_TRUSTSTORE_PASSWD_X %>
+aai.keystore.filename=<%= @AAI_KEYSTORE_FILENAME %>
+aai.keystore.passwd.x=<%= @AAI_KEYSTORE_PASSWD_X %>
+
+
+aai.notification.current.version=<%= @AAI_NOTIFICATION_CURRENT_VERSION %>
+aai.notificationEvent.default.status=<%= @AAI_NOTIFICATION_EVENT_DEFAULT_EVENT_STATUS %>
+aai.notificationEvent.default.eventType=<%= @AAI_NOTIFICATION_EVENT_DEFAULT_EVENT_TYPE %>
+aai.notificationEvent.default.domain=<%= @AAI_NOTIFICATION_EVENT_DEFAULT_DOMAIN %>
+aai.notificationEvent.default.sourceName=<%= @AAI_NOTIFICATION_EVENT_DEFAULT_SOURCE_NAME %>
+aai.notificationEvent.default.sequenceNumber=<%= @AAI_NOTIFICATION_EVENT_DEFAULT_SEQUENCE_NUMBER %>
+aai.notificationEvent.default.severity=<%= @AAI_NOTIFICATION_EVENT_DEFAULT_SEVERITY %>
+aai.notificationEvent.default.version=<%= @AAI_NOTIFICATION_EVENT_DEFAULT_VERSION %>
+# This one lets us enable/disable resource-version checking on updates/deletes
+aai.resourceversion.enableflag=<%= @RESOURCE_VERSION_ENABLE_FLAG %>
+aai.logging.maxStackTraceEntries=10
+aai.default.api.version=<%= @AAI_DEFAULT_API_VERSION %>
+
+
+
+# Used by Model-processing code
+aai.model.delete.sleep.per.vtx.msec=500
+aai.model.query.resultset.maxcount=50
+aai.model.query.timeout.sec=90
+
+# Used by Data Grooming
+aai.grooming.default.max.file=150
+aai.grooming.default.sleep.minutes=7
+
+aai.model.proc.max.levels=50
+aai.edgeTag.proc.max.levels=50
+
+# for transaction log
+aai.logging.hbase.interceptor=true
+aai.logging.hbase.enabled=true
+aai.logging.hbase.logrequest=true
+aai.logging.hbase.logresponse=true
+
+# for gremlin server
+aai.server.rebind=g
+hbase.table.name=<%= @TXN_HBASE_TABLE_NAME %>
+hbase.table.timestamp.format=YYYYMMdd-HH:mm:ss:SSS
+hbase.zookeeper.quorum=<%= @TXN_ZOOKEEPER_QUORUM %>
+hbase.zookeeper.property.clientPort=<%= @TXN_ZOOKEEPER_PROPERTY_CLIENTPORT %>
+hbase.zookeeper.znode.parent=<%= @TXN_HBASE_ZOOKEEPER_ZNODE_PARENT %>
+
+aai.logging.trace.enabled=true
+aai.logging.trace.logrequest=false
+aai.logging.trace.logresponse=false
+
+
+aai.transaction.logging=true
+aai.transaction.logging.get=false
+aai.transaction.logging.post=false
+
diff --git a/cookbooks/aai-resources/aai-resources-config/templates/default/aai-resources-config/preferredRoute.txt b/cookbooks/aai-resources/aai-resources-config/templates/default/aai-resources-config/preferredRoute.txt
new file mode 100644
index 0000000..d09d49e
--- /dev/null
+++ b/cookbooks/aai-resources/aai-resources-config/templates/default/aai-resources-config/preferredRoute.txt
@@ -0,0 +1 @@
+preferredRouteKey=<%= @AAI_WORKLOAD_PREFERRED_ROUTE_KEY %> \ No newline at end of file
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
new file mode 100644
index 0000000..d6c9c2d
--- /dev/null
+++ b/cookbooks/aai-resources/aai-resources-config/templates/default/aai-resources-config/titan-cached.properties
@@ -0,0 +1,13 @@
+# the following parameters are not reloaded automatically and require a manual bounce
+query.fast-property=true
+storage.backend=hbase
+storage.hostname=<%= @STORAGE_HOSTNAME %>
+#schema.default=none
+storage.lock.wait-time=300
+storage.hbase.table=<%= @STORAGE_HBASE_TABLE %>
+storage.hbase.ext.zookeeper.znode.parent=<%= @STORAGE_HBASE_ZOOKEEPER_ZNODE_PARENT %>
+#caching on
+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
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
new file mode 100644
index 0000000..2935cc1
--- /dev/null
+++ b/cookbooks/aai-resources/aai-resources-config/templates/default/aai-resources-config/titan-realtime.properties
@@ -0,0 +1,13 @@
+# the following parameters are not reloaded automatically and require a manual bounce
+query.fast-property=true
+storage.backend=hbase
+storage.hostname=<%= @STORAGE_HOSTNAME %>
+#schema.default=none
+storage.lock.wait-time=300
+storage.hbase.table=<%= @STORAGE_HBASE_TABLE %>
+storage.hbase.ext.zookeeper.znode.parent=<%= @STORAGE_HBASE_ZOOKEEPER_ZNODE_PARENT %>
+# Setting db-cache to false ensure the fastest propagation of changes across servers
+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
diff --git a/cookbooks/aai-resources/runlist-aai-resources.json b/cookbooks/aai-resources/runlist-aai-resources.json
new file mode 100644
index 0000000..a163f94
--- /dev/null
+++ b/cookbooks/aai-resources/runlist-aai-resources.json
@@ -0,0 +1,10 @@
+{
+ "run_list": [
+ "recipe[aai-resources-config::createConfigDirectories]",
+ "recipe[aai-resources-auth::aai-resources-aai-keystore]",
+ "recipe[aai-resources-config::aai-resources-config]",
+ "recipe[aai-resources-config::titan-cached]",
+ "recipe[aai-resources-config::titan-realtime]",
+ "recipe[aai-resources-config::aai-preferredRoute]"
+ ]
+}