From 03f2362649b5bcf83d7e6e5359abf18b6810f16b Mon Sep 17 00:00:00 2001 From: piclose Date: Wed, 1 Feb 2017 16:18:30 +0100 Subject: Initial OpenECOMP MSO mso-config cookbook commit Change-Id: I57dfeb7fb8fceea14e1d1394f51009af141dd6a1 Signed-off-by: piclose --- recipes/mso-sdnc-adapter-config.rb | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 recipes/mso-sdnc-adapter-config.rb (limited to 'recipes/mso-sdnc-adapter-config.rb') 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 + -- cgit 1.2.3-korg