aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/mso-po-adapter-config.rb
blob: 5c7abe8b988336f83cc201015ee179a724a649b4 (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'

################
# 
######
['cloud_config.json','mso.vnf.properties','mso.network.properties','mso.tenant.properties'].each do |file|
  template "#{node['mso_config_path']}#{file}" do
    source "mso-po-adapter-config/#{file}"
    owner "jboss"
    group "jboss"
    mode "0744"
    variables(
      :var => node["mso-po-adapter-config"]
      )
  end
end

################
# 
######
remote_directory "#{node['mso_config_path']}" do
  source "mso-po-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