cb8d3927419552d3774a95f11374cd69ccedd147
[sdc.git] /
1 template "onboard-be-config" do
2    path "#{ENV['JETTY_BASE']}/config/onboarding-be/onboarding_configuration.yaml"
3    source "configuration.yaml.erb"
4    owner "#{ENV['JETTY_USER']}"
5    group "#{ENV['JETTY_GROUP']}"
6    mode "0755"
7    variables({
8       :onboard_ip                      => node['ONBOARDING_BE_VIP'],
9       :onboard_port                    => node['ONBOARDING_BE'][:http_port],
10       :ssl_port                        => node['ONBOARDING_BE'][:https_port],
11       :cassandra_ip                    => node['Nodes']['CS'].join(",").gsub(/[|]/,''),
12       :cassandra_port                  => node['cassandra']['cassandra_port'],
13       :DC_NAME                         => node['cassandra']['datacenter_name'],
14       :socket_connect_timeout          => node['cassandra']['socket_connect_timeout'],
15       :socket_read_timeout             => node['cassandra']['socket_read_timeout'],
16       :cassandra_pwd                   => node['cassandra'][:cassandra_password],
17       :cassandra_usr                   => node['cassandra'][:cassandra_user],
18       :cassandra_truststore_password   => node['cassandra'][:truststore_password],
19       :cassandra_ssl_enabled           => "#{ENV['cassandra_ssl_enabled']}",
20       :basic_auth_enabled              => node['basic_auth']['enabled'],
21       :basic_auth_username             => node['basic_auth'][:user_name],
22       :basic_auth_password             => node['basic_auth'][:user_pass],
23       :catalog_notification_url        => node['ONBOARDING_BE']['catalog_notification_url'],
24       :catalog_be_http_port            => node['BE'][:http_port],
25       :catalog_be_ssl_port             => node['BE'][:https_port],
26       :catalog_be_fqdn                 => node['Nodes']['BE']
27    })
28 end
29
30
31
32 template "VnfrepoConfiguration" do
33    path "#{ENV['JETTY_BASE']}/config/onboarding-be/config-vnfrepo.yaml"
34    source "vnfrepo-configuration.yaml.erb"
35    owner "#{ENV['JETTY_USER']}"
36    group "#{ENV['JETTY_GROUP']}"
37    mode "0755"
38    variables({
39       :VNFREPO_IP   => node['VnfRepo']['vnfRepoHost'],
40       :VNFREPO_PORT => node['VnfRepo']['vnfRepoPort']
41    })
42 end
43
44
45 template "HelmValidatorConfiguration" do
46    path "#{ENV['JETTY_BASE']}/config/onboarding-be/config-helmvalidator.yaml"
47    source "helmvalidator-configuration.yaml.erb"
48    owner "#{ENV['JETTY_USER']}"
49    group "#{ENV['JETTY_GROUP']}"
50    mode "0755"
51    variables({
52       :HVALIDATOR_ENABLED           => node['HelmValidator']['validator_enabled'],
53       :HVALIDATOR_URL               => node['HelmValidator']['validator_url'],
54       :HVALIDATOR_HELM_VERSION      => node['HelmValidator']['helm_version'],
55       :HVALIDATOR_DEPLOYABLE        => node['HelmValidator']['deployable'],
56       :HVALIDATOR_LINTABLE          => node['HelmValidator']['lintable'],
57       :HVALIDATOR_STRICT_LINTABLE   => node['HelmValidator']['strict_lintable']
58    })
59 end
60
61
62 template "ExternalTestingConfiguration" do
63    path "#{ENV['JETTY_BASE']}/config/onboarding-be/externaltesting-configuration.yaml"
64    source "externaltesting-configuration.yaml.erb"
65    owner "#{ENV['JETTY_USER']}"
66    group "#{ENV['JETTY_GROUP']}"
67    mode "0755"
68    variables({
69       :EP1_CONFIG => node['EXTTEST']['ep1_config'],
70       :EP2_CONFIG => node['EXTTEST']['ep2_config']
71    })
72 end