aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-os-chef/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/recipes/FE_2_setup_configuration.rb
blob: 236bb467f7d7be07daa20910a1e01359c3665a9b (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
jetty_base="/var/lib/jetty"


template "catalog-fe-config" do
   path "#{jetty_base}/config/catalog-fe/configuration.yaml"
   source "FE-configuration.yaml.erb"
   owner "jetty"
   group "jetty"
   mode "0755"
   variables({
      :fe_host_ip   => node['HOST_IP'],
      :be_host_ip   => node['HOST_IP'],
      :kb_host_ip   => node['HOST_IP'],
      :catalog_port => node['BE'][:http_port],
      :ssl_port     => node['BE'][:https_port]
   })
end

template "plugins-fe-config" do
   path "#{jetty_base}/config/catalog-fe/plugins-configuration.yaml"
   source "FE-plugins-configuration.yaml.erb"
   owner "jetty"
   group "jetty"
   mode "0755"
   variables({
      :dcae_protocol             => node['Plugins']['DCAE']['dcae_protocol'],
      :dcae_host                 => node['Plugins']['DCAE']['dcae_host'],
      :dcae_port                 => node['Plugins']['DCAE']['dcae_port'],
      :workflow_protocol         => node['Plugins']['WORKFLOW']['workflow_protocol'],
      :workflow_host             => node['Plugins']['WORKFLOW']['workflow_host'],
      :workflow_port             => node['Plugins']['WORKFLOW']['workflow_port']
   })
end


template "onboarding-fe-config" do
 path "#{jetty_base}/config/onboarding-fe/onboarding_configuration.yaml"
 source "FE-onboarding-configuration.yaml.erb"
 owner "jetty"
 group "jetty"
 mode "0755"
 variables({
    :catalog_ip   => node['HOST_IP'],
    :catalog_port => node['BE'][:http_port],
    :ssl_port     => node['BE'][:https_port]
})
end