aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/mso-sdnc-adapter-config.rb
diff options
context:
space:
mode:
authorpiclose <pc457b@intl.att.com>2017-02-01 16:18:30 +0100
committerpiclose <pc457b@intl.att.com>2017-02-01 16:19:06 +0100
commit03f2362649b5bcf83d7e6e5359abf18b6810f16b (patch)
tree2107611be86508add699e6ed33e912221795f25f /recipes/mso-sdnc-adapter-config.rb
parentdd8e6f97fe382311d40487749b8706f4f3ae9f94 (diff)
Initial OpenECOMP MSO mso-config cookbook commit
Change-Id: I57dfeb7fb8fceea14e1d1394f51009af141dd6a1 Signed-off-by: piclose <pc457b@intl.att.com>
Diffstat (limited to 'recipes/mso-sdnc-adapter-config.rb')
-rw-r--r--recipes/mso-sdnc-adapter-config.rb37
1 files changed, 37 insertions, 0 deletions
diff --git a/recipes/mso-sdnc-adapter-config.rb b/recipes/mso-sdnc-adapter-config.rb
new file mode 100644
index 0000000..74b2be4
--- /dev/null
+++ b/recipes/mso-sdnc-adapter-config.rb
@@ -0,0 +1,37 @@
+################
+#
+######
+include_recipe 'mso-config::createConfigDirectories'
+
+################
+#
+######
+['mso.sdnc.properties'].each do |file|
+ template "#{node['mso_config_path']}#{file}" do
+ source "mso-sdnc-adapter-config/#{file}"
+ owner "jboss"
+ group "jboss"
+ mode "0744"
+ variables(
+ :var => node["mso-sdnc-adapter-config"]
+ )
+ end
+end
+
+################
+#
+######
+remote_directory "#{node['mso_config_path']}" do
+ source "mso-sdnc-adapter-config"
+ #cookbook "default is current"
+ files_mode "0744"
+ files_owner "jboss"
+ files_group "jboss"
+ mode "0755"
+ owner "jboss"
+ group "jboss"
+ overwrite true
+ recursive true
+ action :create
+end
+