aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/recipes/FE_2_setup_configuration.rb
blob: abefd285886b3c96e773104b0595076ec2b95d03 (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
template "catalog-fe-config" do
   path "#{ENV['JETTY_BASE']}/config/catalog-fe/configuration.yaml"
   source "FE-configuration.yaml.erb"
   owner "jetty"
   group "jetty"
   mode "0755"
   variables({
      :fe_host_ip   => node['Nodes']['FE'],
      :be_host_ip   => node['Nodes']['BE'],
      :kb_host_ip   => node['Nodes']['KB'],
      :catalog_port => node['BE'][:http_port],
      :ssl_port     => node['BE'][:https_port]
   })
end

template "plugins-fe-config" do
   path "#{ENV['JETTY_BASE']}/config/catalog-fe/plugins-configuration.yaml"
   source "FE-plugins-configuration.yaml.erb"
   owner "jetty"
   group "jetty"
   mode "0755"
   variables({
      :dcae_discovery_url     => node['Plugins']['DCAE']['dcae_discovery_url'],
      :dcae_source_url        => node['Plugins']['DCAE']['dcae_source_url'],
      :workflow_discovery_url => node['Plugins']['WORKFLOW']['workflow_discovery_url'],
      :workflow_source_url    => node['Plugins']['WORKFLOW']['workflow_source_url']
   })
end


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