Update designer configuraiton file
[sdc.git] / sdc-os-chef / sdc-frontend / chef-repo / cookbooks / sdc-catalog-fe / recipes / FE_2_setup_configuration.rb
1 jetty_base="/var/lib/jetty"
2
3
4 template "catalog-fe-config" do
5    path "#{jetty_base}/config/catalog-fe/configuration.yaml"
6    source "FE-configuration.yaml.erb"
7    owner "jetty"
8    group "jetty"
9    mode "0755"
10    variables({
11       :fe_host_ip   => node['HOST_IP'],
12       :be_host_ip   => node['HOST_IP'],
13       :kb_host_ip   => node['HOST_IP'],
14       :catalog_port => node['BE'][:http_port],
15       :ssl_port     => node['BE'][:https_port]
16    })
17 end
18
19 template "designers-fe-config" do
20    path "#{jetty_base}/config/catalog-fe/designers-configuration.yaml"
21    source "FE-designers-configuration.yaml.erb"
22    owner "jetty"
23    group "jetty"
24    mode "0755"
25    variables({
26       :dcae_protocol             => node['Designers']['DCAE']['dcae_protocol'],
27       :dcae_host                 => node['Designers']['DCAE']['dcae_host'],
28       :dcae_port                 => node['Designers']['DCAE']['dcae_port'],
29       :workflow_protocol         => node['Designers']['WORKFLOW']['workflow_protocol'],
30       :workflow_host             => node['Designers']['WORKFLOW']['workflow_host'],
31       :workflow_port             => node['Designers']['WORKFLOW']['workflow_port'],
32    })
33 end
34
35
36 template "onboarding-fe-config" do
37  path "#{jetty_base}/config/onboarding-fe/onboarding_configuration.yaml"
38  source "FE-onboarding-configuration.yaml.erb"
39  owner "jetty"
40  group "jetty"
41  mode "0755"
42  variables({
43     :catalog_ip   => node['HOST_IP'],
44     :catalog_port => node['BE'][:http_port],
45     :ssl_port     => node['BE'][:https_port]
46 })
47 end