aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main/docker/backend/chef-repo/cookbooks/sdc-catalog-be/recipes/BE_10_setup_cadi.rb
blob: e7d11c9f2d47bbe3f1eec0faa4b121d5dac58e60 (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
jetty_base = "#{ENV['JETTY_BASE']}"


directory "Jetty_etc_dir_creation" do
	path "#{jetty_base}/etc"
	owner "#{ENV['JETTY_USER']}"
	owner "#{ENV['JETTY_GROUP']}"
	mode '0755'
	action :create
  not_if { ::File.directory?("#{jetty_base}/etc") }
end


cookbook_file "#{jetty_base}/etc/keyfile" do
   source "keyfile"
   owner "#{ENV['JETTY_USER']}"
   owner "#{ENV['JETTY_GROUP']}"
   mode 0755
end


cookbook_file "#{jetty_base}/etc/cadi_truststore.jks" do
   source "cadi_truststore.jks"
   owner "#{ENV['JETTY_USER']}"
   owner "#{ENV['JETTY_GROUP']}"
   mode 0755
end


template "#{jetty_base}/etc/cadi.properties" do
  path "#{jetty_base}/etc/cadi.properties"
  source "cadi.properties.erb"
  owner "#{ENV['JETTY_USER']}"
  owner "#{ENV['JETTY_GROUP']}"
  mode "0755"
end