re base code
[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 "jetty"
5    group "jetty"
6    mode "0755"
7    variables({
8       :fe_host_ip   => node['Nodes']['FE'],
9       :be_host_ip   => node['Nodes']['BE'],
10       :kb_host_ip   => node['Nodes']['KB'],
11       :catalog_port => node['BE'][:http_port],
12       :ssl_port     => node['BE'][:https_port],
13       :dcae_fe_vip  => node['DCAE_FE_VIP']
14    })
15 end
16
17 template "plugins-fe-config" do
18    path "#{ENV['JETTY_BASE']}/config/catalog-fe/plugins-configuration.yaml"
19    source "FE-plugins-configuration.yaml.erb"
20    owner "jetty"
21    group "jetty"
22    mode "0755"
23    variables({
24       :dcae_discovery_url     => node['Plugins']['DCAE']['dcae_discovery_url'],
25       :dcae_source_url        => node['Plugins']['DCAE']['dcae_source_url'],
26       :dcae_dt_discovery_url  => node['Plugins']['DCAE-TAB']['dcae_dt_discovery_url'],
27       :dcae_dt_source_url     => node['Plugins']['DCAE-TAB']['dcae_dt_source_url'],
28       :workflow_discovery_url => node['Plugins']['WORKFLOW']['workflow_discovery_url'],
29       :workflow_source_url    => node['Plugins']['WORKFLOW']['workflow_source_url']
30    })
31 end
32
33
34 template "onboarding-fe-config" do
35     path "#{ENV['JETTY_BASE']}/config/onboarding-fe/onboarding_configuration.yaml"
36     source "FE-onboarding-configuration.yaml.erb"
37     owner "jetty"
38     group "jetty"
39     mode "0755"
40 end