summaryrefslogtreecommitdiffstats
path: root/docker/docker_tools/chef-solo/cookbooks/Deploy-DCAE/recipes/dcae_tools_setup.rb
diff options
context:
space:
mode:
authork.kedron <k.kedron@partner.samsung.com>2019-09-05 17:50:23 +0200
committerOfir Sonsino <ofir.sonsino@intl.att.com>2019-09-06 09:11:47 +0000
commit176a760ebe4293c19eeb96cf88269215fce870a9 (patch)
treec559a1f2bafbf6147612b88a46a0299a579af57f /docker/docker_tools/chef-solo/cookbooks/Deploy-DCAE/recipes/dcae_tools_setup.rb
parent64636c2148414c1fa5da4b46a69570cdab003837 (diff)
Fully HTTPS support in the dcaedt-tools
Fully HTTPS support: -Updated the onap/base_sdc-jetty docker image version -Updated the chef script to properly used of the new docker image -Updated jvm configuration to support call to the SDC components using HTTPS. -Added buildRestClient method to create the DcaeRestClient supporting the SSL connection -Checkstyle in the recipes adn tools.Main method -Update the docker_run.sh: - Change JAVA_OPTIONS -Update docker_run script -Add proper dependency in the pom (waiting for solving the SDC-2554 bug) Issue-ID: SDC-2552 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com> Change-Id: Ie8dd1f54619f1101c13de13ae3cbb296bba57210
Diffstat (limited to 'docker/docker_tools/chef-solo/cookbooks/Deploy-DCAE/recipes/dcae_tools_setup.rb')
-rw-r--r--docker/docker_tools/chef-solo/cookbooks/Deploy-DCAE/recipes/dcae_tools_setup.rb47
1 files changed, 0 insertions, 47 deletions
diff --git a/docker/docker_tools/chef-solo/cookbooks/Deploy-DCAE/recipes/dcae_tools_setup.rb b/docker/docker_tools/chef-solo/cookbooks/Deploy-DCAE/recipes/dcae_tools_setup.rb
deleted file mode 100644
index 152def2..0000000
--- a/docker/docker_tools/chef-solo/cookbooks/Deploy-DCAE/recipes/dcae_tools_setup.rb
+++ /dev/null
@@ -1,47 +0,0 @@
-workspace_dir = "#{node['WORKSPACE_DIR']}"
-
-dcae_be_host = node['DCAE_BE_VIP']
-
-if node['disableHttp']
- protocol = "https"
- dcae_be_port = node['DCAE']['BE'][:https_port]
-else
- protocol = "http"
- dcae_be_port = node['DCAE']['BE'][:http_port]
-end
-
-printf("DEBUG: [%s]:[%s] disableHttp=[%s], protocol=[%s], dcae_be_vip=[%s], dcae_be_port=[%s] !!! \n", cookbook_name, recipe_name, node['disableHttp'], protocol, dcae_be_host ,dcae_be_port )
-
-
-directory "#{workspace_dir}/conf" do
- mode '0755'
- owner "dcae"
- group "dcae"
- recursive true
- action :create
-end
-
-
-template "dcae-tools-config-yaml" do
- sensitive true
- path "/#{workspace_dir}/conf/environment.json"
- source "environment.json.erb"
- mode "0755"
- owner "dcae"
- group "dcae"
- variables ({
- :dcae_be_host => dcae_be_host,
- :dcae_be_port => dcae_be_port,
- :protocol => protocol
- })
-end
-
-
-cookbook_file "/#{workspace_dir}/conf/config.json" do
- sensitive true
- source "config.json"
- owner "dcae"
- group "dcae"
- mode "0755"
- action :create
-end