diff options
author | Venkata Harish K Kajur <vk250x@att.com> | 2017-05-19 12:29:43 -0400 |
---|---|---|
committer | Venkata Harish K Kajur <vk250x@att.com> | 2017-05-19 12:40:51 -0400 |
commit | 0cd55fc1d50f066720bbe0ce591d9cbc59ecddf4 (patch) | |
tree | c01e51a84caa6baac7511352451281c3759097e0 /cookbooks/aai-traversal/aai-traversal-config | |
parent | b160c3cc1e58e85502ccaa7358cd38ff210ed34a (diff) |
Add the chef config changes for the new repos
Change-Id: If1fc90402ca70449cd181fab9f469eded4831638
Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
Diffstat (limited to 'cookbooks/aai-traversal/aai-traversal-config')
19 files changed, 393 insertions, 0 deletions
diff --git a/cookbooks/aai-traversal/aai-traversal-config/CHANGELOG.md b/cookbooks/aai-traversal/aai-traversal-config/CHANGELOG.md new file mode 100644 index 0000000..1e69e21 --- /dev/null +++ b/cookbooks/aai-traversal/aai-traversal-config/CHANGELOG.md @@ -0,0 +1,13 @@ +aai-traversal-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-traversal/aai-traversal-config/README.md b/cookbooks/aai-traversal/aai-traversal-config/README.md new file mode 100644 index 0000000..3e6fcc9 --- /dev/null +++ b/cookbooks/aai-traversal/aai-traversal-config/README.md @@ -0,0 +1,68 @@ +aai-traversal-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-traversal-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-traversal/aai-traversal-config/attributes/aai-traversal-config.rb b/cookbooks/aai-traversal/aai-traversal-config/attributes/aai-traversal-config.rb new file mode 100644 index 0000000..72f7433 --- /dev/null +++ b/cookbooks/aai-traversal/aai-traversal-config/attributes/aai-traversal-config.rb @@ -0,0 +1,15 @@ +node.default["aai-traversal-config"]["AAIENV"] = 'solo' +node.default["aai-traversal-config"]["PROJECT_HOME"] = '/opt/app/aai-traversal' +node.default["aai-traversal-config"]["LOGROOT"] = '/opt/aai/logroot' +node.default["aai-traversal-config"]["JAVA_HOME"] = '/usr/lib/jvm/java-8-openjdk-amd64' +node.default["aai-traversal-config"]["AAI_SERVER_URL_BASE"] = 'https://localhost:8443/aai/' +node.default["aai-traversal-config"]["AAI_SERVER_URL"] = 'https://localhost:8443/aai/v10/' +node.default["aai-traversal-config"]["AAI_GLOBAL_CALLBACK_URL"] = 'https://localhost:8443/aai/' +node.default["aai-traversal-config"]["AAI_TRUSTSTORE_FILENAME"] = 'aai_keystore' +node.default["aai-traversal-config"]["AAI_TRUSTSTORE_PASSWD_X"] = 'OBF:1vn21ugu1saj1v9i1v941sar1ugw1vo0' +node.default["aai-traversal-config"]["AAI_KEYSTORE_FILENAME"] = 'aai_keystore' +node.default["aai-traversal-config"]["AAI_KEYSTORE_PASSWD_X"] = 'OBF:1vn21ugu1saj1v9i1v941sar1ugw1vo0' +node.default["aai-traversal-config"]["TXN_HBASE_TABLE_NAME"] = 'aailogging.dev' +node.default["aai-traversal-config"]["TXN_ZOOKEEPER_QUORUM"] = 'localhost' +node.default["aai-traversal-config"]["TXN_ZOOKEEPER_PROPERTY_CLIENTPORT"] = '2181' +node.default["aai-traversal-config"]["TXN_HBASE_ZOOKEEPER_ZNODE_PARENT"] = '/hbase' diff --git a/cookbooks/aai-traversal/aai-traversal-config/attributes/gremlin-server-config.rb b/cookbooks/aai-traversal/aai-traversal-config/attributes/gremlin-server-config.rb new file mode 100644 index 0000000..97fa6fd --- /dev/null +++ b/cookbooks/aai-traversal/aai-traversal-config/attributes/gremlin-server-config.rb @@ -0,0 +1 @@ +node.default["aai-traversal-config"]["AAI_GREMLIN_SERVER_CONFIG_HOST_LIST"] = '[localhost]' diff --git a/cookbooks/aai-traversal/aai-traversal-config/attributes/preferredRoute.rb b/cookbooks/aai-traversal/aai-traversal-config/attributes/preferredRoute.rb new file mode 100644 index 0000000..21af672 --- /dev/null +++ b/cookbooks/aai-traversal/aai-traversal-config/attributes/preferredRoute.rb @@ -0,0 +1 @@ +node.default["aai-traversal-config"]["AAI_WORKLOAD_PREFERRED_ROUTE_KEY"] = 'MR1'
\ No newline at end of file diff --git a/cookbooks/aai-traversal/aai-traversal-config/attributes/titan-cached.rb b/cookbooks/aai-traversal/aai-traversal-config/attributes/titan-cached.rb new file mode 100644 index 0000000..cb88f3c --- /dev/null +++ b/cookbooks/aai-traversal/aai-traversal-config/attributes/titan-cached.rb @@ -0,0 +1,6 @@ +node.default["aai-traversal-config"]["STORAGE_HOSTNAME"] = 'localhost' +node.default["aai-traversal-config"]["STORAGE_HBASE_TABLE"] = 'aaigraph.dev' +node.default["aai-traversal-config"]["STORAGE_HBASE_ZOOKEEPER_ZNODE_PARENT"] = '/hbase' +node.default["aai-traversal-config"]["DB_CACHE_CLEAN_WAIT"] = 20 +node.default["aai-traversal-config"]["DB_CACHE_TIME"] = 180000 +node.default["aai-traversal-config"]["DB_CACHE_SIZE"] = 0.3
\ No newline at end of file diff --git a/cookbooks/aai-traversal/aai-traversal-config/attributes/titan-realtime.rb b/cookbooks/aai-traversal/aai-traversal-config/attributes/titan-realtime.rb new file mode 100644 index 0000000..f67c646 --- /dev/null +++ b/cookbooks/aai-traversal/aai-traversal-config/attributes/titan-realtime.rb @@ -0,0 +1,3 @@ +node.default["aai-traversal-config"]["STORAGE_HOSTNAME"] = 'localhost' +node.default["aai-traversal-config"]["STORAGE_HBASE_TABLE"] = 'aaigraph.dev' +node.default["aai-traversal-config"]["STORAGE_HBASE_ZOOKEEPER_ZNODE_PARENT"] = '/hbase'
\ No newline at end of file diff --git a/cookbooks/aai-traversal/aai-traversal-config/metadata.rb b/cookbooks/aai-traversal/aai-traversal-config/metadata.rb new file mode 100644 index 0000000..fd654fa --- /dev/null +++ b/cookbooks/aai-traversal/aai-traversal-config/metadata.rb @@ -0,0 +1,7 @@ +name 'aai-traversal-config' +maintainer 'ATT' +maintainer_email '' +license 'All rights reserved' +description 'Installs/Configures aai-traversal-config' +long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) +version '1.0.0' diff --git a/cookbooks/aai-traversal/aai-traversal-config/recipes/aai-preferredRoute.rb b/cookbooks/aai-traversal/aai-traversal-config/recipes/aai-preferredRoute.rb new file mode 100644 index 0000000..2672e9b --- /dev/null +++ b/cookbooks/aai-traversal/aai-traversal-config/recipes/aai-preferredRoute.rb @@ -0,0 +1,11 @@ +['preferredRoute.txt'].each do |file| + template "#{node['aai-traversal-config']['PROJECT_HOME']}/bundleconfig/etc/appprops/#{file}" do + source "aai-traversal-app-config/preferredRoute.txt" + owner "aaiadmin" + group "aaiadmin" + mode "0644" + variables( +:AAI_WORKLOAD_PREFERRED_ROUTE_KEY => node["aai-traversal-config"]["AAI_WORKLOAD_PREFERRED_ROUTE_KEY"] + ) + end +end
\ No newline at end of file diff --git a/cookbooks/aai-traversal/aai-traversal-config/recipes/aai-traversal-config.rb b/cookbooks/aai-traversal/aai-traversal-config/recipes/aai-traversal-config.rb new file mode 100644 index 0000000..aae12d0 --- /dev/null +++ b/cookbooks/aai-traversal/aai-traversal-config/recipes/aai-traversal-config.rb @@ -0,0 +1,77 @@ +################ +# Update aaiGraphQueryConfig.properties +################ +include_recipe 'aai-traversal-config::createConfigDirectories' + +['aaiconfig.properties'].each do |file| + template "#{node['aai-traversal-config']['PROJECT_HOME']}/bundleconfig/etc/appprops/#{file}" do + source "aai-traversal-app-config/aaiconfig.properties" + owner "aaiadmin" + group "aaiadmin" + mode "0644" + variables( +:AAI_SERVER_URL_BASE => node["aai-traversal-config"]["AAI_SERVER_URL_BASE"], +:AAI_SERVER_URL => node["aai-traversal-config"]["AAI_SERVER_URL"], +:AAI_GLOBAL_CALLBACK_URL => node["aai-traversal-config"]["AAI_GLOBAL_CALLBACK_URL"], +:AAI_TRUSTSTORE_FILENAME => node["aai-traversal-config"]["AAI_TRUSTSTORE_FILENAME"], +:AAI_TRUSTSTORE_PASSWD_X => node["aai-traversal-config"]["AAI_TRUSTSTORE_PASSWD_X"], +:AAI_KEYSTORE_FILENAME => node["aai-traversal-config"]["AAI_KEYSTORE_FILENAME"], +:AAI_KEYSTORE_PASSWD_X => node["aai-traversal-config"]["AAI_KEYSTORE_PASSWD_X"], +:APPLICATION_SERVERS => node["aai-traversal-config"]["APPLICATION_SERVERS"], +:TXN_HBASE_TABLE_NAME => node["aai-traversal-config"]["TXN_HBASE_TABLE_NAME"], +:TXN_ZOOKEEPER_QUORUM => node["aai-traversal-config"]["TXN_ZOOKEEPER_QUORUM"], +:TXN_ZOOKEEPER_PROPERTY_CLIENTPORT => node["aai-traversal-config"]["TXN_ZOOKEEPER_PROPERTY_CLIENTPORT"], +:TXN_HBASE_ZOOKEEPER_ZNODE_PARENT => node["aai-traversal-config"]["TXN_HBASE_ZOOKEEPER_ZNODE_PARENT"], +:RESOURCE_VERSION_ENABLE_FLAG => node["aai-traversal-config"]["RESOURCE_VERSION_ENABLE_FLAG"], + :AAI_NOTIFICATION_CURRENT_VERSION => node["aai-traversal-config"]["AAI_NOTIFICATION_CURRENT_VERSION"], + :AAI_NOTIFICATION_EVENT_DEFAULT_EVENT_STATUS => node["aai-traversal-config"]["AAI_NOTIFICATION_EVENT_DEFAULT_EVENT_STATUS"], + :AAI_NOTIFICATION_EVENT_DEFAULT_EVENT_TYPE => node["aai-traversal-config"]["AAI_NOTIFICATION_EVENT_DEFAULT_EVENT_TYPE"], + :AAI_NOTIFICATION_EVENT_DEFAULT_DOMAIN => node["aai-traversal-config"]["AAI_NOTIFICATION_EVENT_DEFAULT_DOMAIN"], + :AAI_NOTIFICATION_EVENT_DEFAULT_SOURCE_NAME => node["aai-traversal-config"]["AAI_NOTIFICATION_EVENT_DEFAULT_SOURCE_NAME"], + :AAI_NOTIFICATION_EVENT_DEFAULT_SEQUENCE_NUMBER => node["aai-traversal-config"]["AAI_NOTIFICATION_EVENT_DEFAULT_SEQUENCE_NUMBER"], + :AAI_NOTIFICATION_EVENT_DEFAULT_SEVERITY => node["aai-traversal-config"]["AAI_NOTIFICATION_EVENT_DEFAULT_SEVERITY"], + :AAI_NOTIFICATION_EVENT_DEFAULT_VERSION => node["aai-traversal-config"]["AAI_NOTIFICATION_EVENT_DEFAULT_VERSION"], +:AAI_DEFAULT_API_VERSION => node["aai-traversal-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-traversal/aai-traversal-config/recipes/createConfigDirectories.rb b/cookbooks/aai-traversal/aai-traversal-config/recipes/createConfigDirectories.rb new file mode 100644 index 0000000..9739c1a --- /dev/null +++ b/cookbooks/aai-traversal/aai-traversal-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-traversal-config']['LOGROOT']}/AAI-GQ", + "#{node['aai-traversal-config']['LOGROOT']}/AAI-GQ/data", + "#{node['aai-traversal-config']['LOGROOT']}/AAI-GQ/misc", + "#{node['aai-traversal-config']['LOGROOT']}/AAI-GQ/ajsc-jetty" ].each do |path| + directory path do + owner 'aaiadmin' + group 'aaiadmin' + mode '0755' + recursive=true + action :create + end +end + +[ "#{node['aai-traversal-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-traversal-config']['PROJECT_HOME']}/logs" do + to "#{node['aai-traversal-config']['LOGROOT']}/AAI-GQ" + owner 'aaiadmin' + group 'aaiadmin' + mode '0755' +end + +#Make a link from /opt/app/aai-traversal/scripts to /opt/app/aai-traversal/bin +link "#{node['aai-traversal-config']['PROJECT_HOME']}/scripts" do + to "#{node['aai-traversal-config']['PROJECT_HOME']}/bin" + owner 'aaiadmin' + group 'aaiadmin' + mode '0755' +end diff --git a/cookbooks/aai-traversal/aai-traversal-config/recipes/gremlin-server-config.rb b/cookbooks/aai-traversal/aai-traversal-config/recipes/gremlin-server-config.rb new file mode 100644 index 0000000..2af775b --- /dev/null +++ b/cookbooks/aai-traversal/aai-traversal-config/recipes/gremlin-server-config.rb @@ -0,0 +1,11 @@ +['gremlin-server-config.yaml'].each do |file| + template "#{node['aai-traversal-config']['PROJECT_HOME']}/bundleconfig/etc/appprops/#{file}" do + source "aai-traversal-app-config/gremlin-server-config.yaml" + owner "aaiadmin" + group "aaiadmin" + mode "0644" + variables( +:AAI_GREMLIN_SERVER_CONFIG_HOST_LIST => node["aai-traversal-config"]["AAI_GREMLIN_SERVER_CONFIG_HOST_LIST"] + ) + end +end
\ No newline at end of file diff --git a/cookbooks/aai-traversal/aai-traversal-config/recipes/titan-cached.rb b/cookbooks/aai-traversal/aai-traversal-config/recipes/titan-cached.rb new file mode 100644 index 0000000..b00e6ba --- /dev/null +++ b/cookbooks/aai-traversal/aai-traversal-config/recipes/titan-cached.rb @@ -0,0 +1,17 @@ +['titan-cached.properties'].each do |file| + template "#{node['aai-traversal-config']['PROJECT_HOME']}/bundleconfig/etc/appprops/#{file}" do + source "aai-traversal-app-config/titan-cached.properties" + owner "aaiadmin" + group "aaiadmin" + mode "0644" + variables( +:STORAGE_HOSTNAME => node["aai-traversal-config"]["STORAGE_HOSTNAME"], +:STORAGE_HBASE_TABLE => node["aai-traversal-config"]["STORAGE_HBASE_TABLE"], +:STORAGE_HBASE_ZOOKEEPER_ZNODE_PARENT => node["aai-traversal-config"]["STORAGE_HBASE_ZOOKEEPER_ZNODE_PARENT"], +:DB_CACHE_CLEAN_WAIT => node["aai-traversal-config"]["DB_CACHE_CLEAN_WAIT"], +:DB_CACHE_TIME => node["aai-traversal-config"]["DB_CACHE_TIME"], +:DB_CACHE_SIZE => node["aai-traversal-config"]["DB_CACHE_SIZE"] + ) + end +end + diff --git a/cookbooks/aai-traversal/aai-traversal-config/recipes/titan-realtime.rb b/cookbooks/aai-traversal/aai-traversal-config/recipes/titan-realtime.rb new file mode 100644 index 0000000..cd6686a --- /dev/null +++ b/cookbooks/aai-traversal/aai-traversal-config/recipes/titan-realtime.rb @@ -0,0 +1,14 @@ +['titan-realtime.properties'].each do |file| + template "#{node['aai-traversal-config']['PROJECT_HOME']}/bundleconfig/etc/appprops/#{file}" do + source "aai-traversal-app-config/titan-realtime.properties" + owner "aaiadmin" + group "aaiadmin" + mode "0644" + variables( +:STORAGE_HOSTNAME => node["aai-traversal-config"]["STORAGE_HOSTNAME"], +:STORAGE_HBASE_TABLE => node["aai-traversal-config"]["STORAGE_HBASE_TABLE"], +:STORAGE_HBASE_ZOOKEEPER_ZNODE_PARENT => node["aai-traversal-config"]["STORAGE_HBASE_ZOOKEEPER_ZNODE_PARENT"] + ) + end +end + diff --git a/cookbooks/aai-traversal/aai-traversal-config/templates/default/aai-traversal-app-config/aaiconfig.properties b/cookbooks/aai-traversal/aai-traversal-config/templates/default/aai-traversal-app-config/aaiconfig.properties new file mode 100644 index 0000000..eadc72a --- /dev/null +++ b/cookbooks/aai-traversal/aai-traversal-config/templates/default/aai-traversal-app-config/aaiconfig.properties @@ -0,0 +1,75 @@ +#################################################################### +# 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.tools.enableBasicAuth=true +aai.tools.username=AAI +aai.tools.password=AAI + +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.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 + + +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-traversal/aai-traversal-config/templates/default/aai-traversal-app-config/gremlin-server-config.yaml b/cookbooks/aai-traversal/aai-traversal-config/templates/default/aai-traversal-app-config/gremlin-server-config.yaml new file mode 100644 index 0000000..23637a8 --- /dev/null +++ b/cookbooks/aai-traversal/aai-traversal-config/templates/default/aai-traversal-app-config/gremlin-server-config.yaml @@ -0,0 +1,3 @@ +hosts: <%= @AAI_GREMLIN_SERVER_CONFIG_HOST_LIST %> +port: 8182 +serializer: { className: org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV1d0 }
\ No newline at end of file diff --git a/cookbooks/aai-traversal/aai-traversal-config/templates/default/aai-traversal-app-config/preferredRoute.txt b/cookbooks/aai-traversal/aai-traversal-config/templates/default/aai-traversal-app-config/preferredRoute.txt new file mode 100644 index 0000000..d09d49e --- /dev/null +++ b/cookbooks/aai-traversal/aai-traversal-config/templates/default/aai-traversal-app-config/preferredRoute.txt @@ -0,0 +1 @@ +preferredRouteKey=<%= @AAI_WORKLOAD_PREFERRED_ROUTE_KEY %>
\ No newline at end of file diff --git a/cookbooks/aai-traversal/aai-traversal-config/templates/default/aai-traversal-app-config/titan-cached.properties b/cookbooks/aai-traversal/aai-traversal-config/templates/default/aai-traversal-app-config/titan-cached.properties new file mode 100644 index 0000000..d6c9c2d --- /dev/null +++ b/cookbooks/aai-traversal/aai-traversal-config/templates/default/aai-traversal-app-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-traversal/aai-traversal-config/templates/default/aai-traversal-app-config/titan-realtime.properties b/cookbooks/aai-traversal/aai-traversal-config/templates/default/aai-traversal-app-config/titan-realtime.properties new file mode 100644 index 0000000..2935cc1 --- /dev/null +++ b/cookbooks/aai-traversal/aai-traversal-config/templates/default/aai-traversal-app-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 |