summaryrefslogtreecommitdiffstats
path: root/cookbooks/aai-resources/aai-resources-config/recipes/aai-preferredRoute.rb
diff options
context:
space:
mode:
Diffstat (limited to 'cookbooks/aai-resources/aai-resources-config/recipes/aai-preferredRoute.rb')
-rw-r--r--cookbooks/aai-resources/aai-resources-config/recipes/aai-preferredRoute.rb11
1 files changed, 11 insertions, 0 deletions
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