summaryrefslogtreecommitdiffstats
path: root/cookbooks/ajsc-aai-config/recipes/aai-preferredRoute.rb
diff options
context:
space:
mode:
authorSteve Smokowski <ss835w@att.com>2017-02-09 15:38:13 -0500
committerSteve Smokowski <ss835w@att.com>2017-02-09 15:39:00 -0500
commitb160c3cc1e58e85502ccaa7358cd38ff210ed34a (patch)
tree210cc985eff4dc146e3ea431cdc7d1e792594314 /cookbooks/ajsc-aai-config/recipes/aai-preferredRoute.rb
parent7a3f850cf5c4aad118edaaf0b6981352daecb2a8 (diff)
Initial OpenECOMP A&AI commitrelease-1.0.0
Change-Id: Ic953856ef5e44eebf05bd00fe26cb5901fb49289 Signed-off-by: Steve Smokowski <ss835w@att.com>
Diffstat (limited to 'cookbooks/ajsc-aai-config/recipes/aai-preferredRoute.rb')
-rw-r--r--cookbooks/ajsc-aai-config/recipes/aai-preferredRoute.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/cookbooks/ajsc-aai-config/recipes/aai-preferredRoute.rb b/cookbooks/ajsc-aai-config/recipes/aai-preferredRoute.rb
new file mode 100644
index 0000000..c9f4887
--- /dev/null
+++ b/cookbooks/ajsc-aai-config/recipes/aai-preferredRoute.rb
@@ -0,0 +1,11 @@
+['preferredRoute.txt'].each do |file|
+ template "#{node['aai-app-config']['PROJECT_HOME']}/bundleconfig/etc/appprops/#{file}" do
+ source "aai-app-config/preferredRoute.txt"
+ owner "aaiadmin"
+ group "aaiadmin"
+ mode "0644"
+ variables(
+:AAI_WORKLOAD_PREFERRED_ROUTE_KEY => node["aai-app-config"]["AAI_WORKLOAD_PREFERRED_ROUTE_KEY"]
+ )
+ end
+end \ No newline at end of file