blob: 69d5a0387c05a6a8af46dea3d1f46ff4b8fb0413 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
dcae_fe_vip = node['DCAE_FE_VIP']
if node['disableHttp']
protocol = "https"
dcae_fe_port = node['DCAE']['FE'][:https_port]
dcae_dt_port = node['DCAE']['DT'][:https_port]
else
protocol = "http"
dcae_fe_port = node['DCAE']['FE'][:http_port]
dcae_dt_port = node['DCAE']['DT'][:http_port]
end
printf("DEBUG: [%s]:[%s] disableHttp=[%s], protocol=[%s], dcae_dt_port=[%s] !!! \n", cookbook_name, recipe_name, node['disableHttp'], protocol, dcae_dt_port )
directory "DT_tempdir_creation" do
path "#{ENV['JETTY_BASE']}/temp"
owner 'jetty'
group 'jetty'
mode '0755'
action :create
end
directory "#{ENV['JETTY_BASE']}/config" do
owner "jetty"
group "jetty"
mode '0755'
recursive true
action :create
end
directory "#{ENV['JETTY_BASE']}/config/dcae-dt" do
owner "jetty"
group "jetty"
mode '0755'
recursive true
action :create
end
template "dcae-dt-config" do
sensitive true
path "#{ENV['JETTY_BASE']}/config/dcae-dt/application.properties"
source "dcae-application.properties.erb"
owner "jetty"
group "jetty"
mode "0755"
variables({
:dcae_fe_vip => dcae_fe_vip,
:dcae_fe_port => dcae_fe_port,
:protocol => protocol,
:dcae_dt_port => dcae_dt_port
})
end
template "dcae-logback-spring-config" do
sensitive true
path "#{ENV['JETTY_BASE']}/config/dcae-dt/logback-spring.xml"
source "dcae-logback-spring.erb"
owner "jetty"
group "jetty"
mode "0755"
end
|