Fix bug 'X-Frame-Options not configured: Lack of clickjacking protection'
[sdc.git] / catalog-fe / sdc-frontend / chef-repo / cookbooks / sdc-catalog-fe / recipes / FE_2_setup_configuration.rb
1 template "catalog-fe-config" do
2    path "#{ENV['JETTY_BASE']}/config/catalog-fe/configuration.yaml"
3    source "FE-configuration.yaml.erb"
4    owner "#{ENV['JETTY_USER']}"
5    group "#{ENV['JETTY_GROUP']}"
6    mode "0755"
7    variables({
8       :fe_host_ip   => node['FE_VIP'],
9       :be_host_ip   => node['BE_VIP'],
10       :kb_host_ip   => node['Nodes']['KB'],
11       :catalog_port => node['BE'][:http_port],
12       :ssl_port     => node['BE'][:https_port],
13       :basic_auth_flag => node['basic_auth']['enabled'],
14       :user_name => node['basic_auth'][:user_name],
15       :user_pass => node['basic_auth'][:user_pass],
16       :permittedAncestors => "#{ENV['permittedAncestors']}",
17       :dcae_fe_vip  => node['DCAE_FE_VIP']
18    })
19 end
20
21 cookbook_file "#{ENV['JETTY_BASE']}/config/catalog-fe/workspace-configuration.yaml" do
22   source "FE-workspace-configuration.yaml"
23   mode 0755
24   owner "#{ENV['JETTY_USER']}"
25   group "#{ENV['JETTY_GROUP']}"
26 end
27
28
29
30 template "onboarding-fe-config" do
31     path "#{ENV['JETTY_BASE']}/config/onboarding-fe/onboarding_configuration.yaml"
32     source "FE-onboarding-configuration.yaml.erb"
33     owner "#{ENV['JETTY_USER']}"
34     group "#{ENV['JETTY_GROUP']}"
35     mode "0755"
36 end