diff options
author | piclose <pc457b@intl.att.com> | 2017-02-01 16:18:30 +0100 |
---|---|---|
committer | piclose <pc457b@intl.att.com> | 2017-02-01 16:19:06 +0100 |
commit | 03f2362649b5bcf83d7e6e5359abf18b6810f16b (patch) | |
tree | 2107611be86508add699e6ed33e912221795f25f /recipes/mso-api-handler-infra-config.rb | |
parent | dd8e6f97fe382311d40487749b8706f4f3ae9f94 (diff) |
Initial OpenECOMP MSO mso-config cookbook commit
Change-Id: I57dfeb7fb8fceea14e1d1394f51009af141dd6a1
Signed-off-by: piclose <pc457b@intl.att.com>
Diffstat (limited to 'recipes/mso-api-handler-infra-config.rb')
-rw-r--r-- | recipes/mso-api-handler-infra-config.rb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/recipes/mso-api-handler-infra-config.rb b/recipes/mso-api-handler-infra-config.rb new file mode 100644 index 0000000..6858c75 --- /dev/null +++ b/recipes/mso-api-handler-infra-config.rb @@ -0,0 +1,34 @@ +################ +# +###### +include_recipe 'mso-config::createConfigDirectories' + +################ +# +###### +['mso.apihandler-infra.properties'].each do |file| + template "#{node['mso_config_path']}#{file}" do + source "mso-api-handler-infra-config/#{file}" + owner "jboss" + group "jboss" + mode "0744" + variables( + :var => node["mso-api-handler-infra-config"] + ) + end +end + +remote_directory "#{node['mso_config_path']}" do + source "mso-api-handler-infra-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 + |