aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/recipes
diff options
context:
space:
mode:
authorAreli, Fuss (af732p) <af732p@att.com>2018-04-09 18:27:46 +0300
committerMichael Lando <ml636r@att.com>2018-04-11 08:42:06 +0000
commit204f26d848150fceb55ec587eed57ad92afe20e4 (patch)
treed4a0c8965fe8610e185ee810a29aaf5f38d5818e /catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/recipes
parent9d525f580b866778dc3417a06d98b96c70857efe (diff)
Add support of http and https
Add support of http and https Change-Id: I8c79155037ddaa5f904ecd85de797675a6be9436 Issue-ID: SDC-1180 Signed-off-by: Areli, Fuss (af732p) <af732p@att.com>
Diffstat (limited to 'catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/recipes')
-rw-r--r--catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/recipes/FE_7_create_jetty_modules.rb34
1 files changed, 24 insertions, 10 deletions
diff --git a/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/recipes/FE_7_create_jetty_modules.rb b/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/recipes/FE_7_create_jetty_modules.rb
index 32b121eefd..6c782428b0 100644
--- a/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/recipes/FE_7_create_jetty_modules.rb
+++ b/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/recipes/FE_7_create_jetty_modules.rb
@@ -1,3 +1,12 @@
+#
+#Set the http module option
+if node['disableHttp']
+ http_option = "#--module=http"
+else
+ http_option = "--module=http"
+end
+
+
bash "create-jetty-modules" do
cwd "#{ENV['JETTY_BASE']}"
code <<-EOH
@@ -8,24 +17,26 @@ EOH
end
-
-template "FE-http-ini" do
+template "http-ini" do
path "#{ENV['JETTY_BASE']}/start.d/http.ini"
- source "FE-http-ini.erb"
+ source "http-ini.erb"
owner "jetty"
group "jetty"
mode "0755"
- variables :FE_http_port => "#{node['FE'][:http_port]}"
+ variables ({
+ :http_option => http_option ,
+ :http_port => "#{node['FE'][:http_port]}"
+ })
end
-template "FE-https-ini" do
+template "https-ini" do
path "#{ENV['JETTY_BASE']}/start.d/https.ini"
- source "FE-https-ini.erb"
+ source "https-ini.erb"
owner "jetty"
group "jetty"
mode "0755"
- variables :FE_https_port => "#{node['FE'][:https_port]}"
+ variables :https_port => "#{node['FE'][:https_port]}"
end
@@ -35,7 +46,10 @@ template "ssl-ini" do
owner "jetty"
group "jetty"
mode "0755"
- variables :https_port => "#{node['FE'][:https_port]}"
+ variables ({
+ :https_port => "#{node['FE'][:https_port]}" ,
+ :jetty_keystore_pwd => "#{node['jetty'][:keystore_pwd]}" ,
+ :jetty_keymanager_pwd => "#{node['jetty'][:keymanager_pwd]}" ,
+ :jetty_truststore_pwd => "#{node['jetty'][:truststore_pwd]}"
+ })
end
-
-