Run pods as non-root user
[sdc.git] / catalog-be / sdc-backend / chef-repo / cookbooks / sdc-catalog-be / recipes / BE_10_setup_cadi.rb
1 jetty_base = "#{ENV['JETTY_BASE']}"
2
3
4 directory "Jetty_etc_dir_creation" do
5         path "#{jetty_base}/etc"
6         owner 'jetty'
7         group 'jetty'
8         mode '0755'
9         action :create
10   not_if { ::File.directory?("#{jetty_base}/etc") }
11 end
12
13
14 cookbook_file "#{jetty_base}/etc/keyfile" do
15    source "keyfile"
16    owner "jetty"
17    group "jetty"
18    mode 0755
19 end
20
21
22 cookbook_file "#{jetty_base}/etc/cadi_truststore.jks" do
23    source "cadi_truststore.jks"
24    owner "jetty"
25    group "jetty"
26    mode 0755
27 end
28
29
30 template "#{jetty_base}/etc/cadi.properties" do
31   path "#{jetty_base}/etc/cadi.properties"
32   source "cadi.properties.erb"
33   owner "jetty"
34   group "jetty"
35   mode "0755"
36 end
37