aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/mso-sdnc-adapter-config.rb
blob: 74b2be4b6aeba081ed397841694633b585179ef0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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