@@ -30,27 +30,21 @@ def self.monasca_admin_host(node)
3030
3131 def self . api_public_url ( node )
3232 host = monasca_public_host ( node )
33- # SSL is not supported at this moment
34- # protocol = node[:monasca][:api][:ssl] ? "https" : "http"
35- protocol = "http"
33+ protocol = node [ :monasca ] [ :api ] [ :protocol ]
3634 port = node [ :monasca ] [ :api ] [ :bind_port ]
3735 "#{ protocol } ://#{ host } :#{ port } /v2.0"
3836 end
3937
4038 def self . api_admin_url ( node )
4139 host = monasca_admin_host ( node )
42- # SSL is not supported at this moment
43- # protocol = node[:monasca][:api][:ssl] ? "https" : "http"
44- protocol = "http"
40+ protocol = node [ :monasca ] [ :api ] [ :protocol ]
4541 port = node [ :monasca ] [ :api ] [ :bind_port ]
4642 "#{ protocol } ://#{ host } :#{ port } /v2.0"
4743 end
4844
4945 def self . api_internal_url ( node )
5046 host = get_host_for_monitoring_url ( node )
51- # SSL is not supported at this moment
52- # protocol = node[:monasca][:api][:ssl] ? "https" : "http"
53- protocol = "http"
47+ protocol = node [ :monasca ] [ :api ] [ :protocol ]
5448 port = node [ :monasca ] [ :api ] [ :bind_port ]
5549 "#{ protocol } ://#{ host } :#{ port } /v2.0"
5650 end
@@ -69,27 +63,21 @@ def self.api_network_url(node)
6963
7064 def self . log_api_public_url ( node , version = "v3.0" )
7165 host = monasca_public_host ( node )
72- # SSL is not supported at this moment
73- # protocol = node[:monasca][:log_api][:ssl] ? "https" : "http"
74- protocol = "http"
66+ protocol = node [ :monasca ] [ :api ] [ :protocol ]
7567 port = node [ :monasca ] [ :log_api ] [ :bind_port ]
7668 "#{ protocol } ://#{ host } :#{ port } /#{ version } "
7769 end
7870
7971 def self . log_api_admin_url ( node , version = "v3.0" )
8072 host = monasca_admin_host ( node )
81- # SSL is not supported at this moment
82- # protocol = node[:monasca][:log_api][:ssl] ? "https" : "http"
83- protocol = "http"
73+ protocol = node [ :monasca ] [ :api ] [ :protocol ]
8474 port = node [ :monasca ] [ :log_api ] [ :bind_port ]
8575 "#{ protocol } ://#{ host } :#{ port } /#{ version } "
8676 end
8777
8878 def self . log_api_internal_url ( node , version = "v3.0" )
8979 host = get_host_for_monitoring_url ( node )
90- # SSL is not supported at this moment
91- # protocol = node[:monasca][:log_api][:ssl] ? "https" : "http"
92- protocol = "http"
80+ protocol = node [ :monasca ] [ :api ] [ :protocol ]
9381 port = node [ :monasca ] [ :log_api ] [ :bind_port ]
9482 "#{ protocol } ://#{ host } :#{ port } /#{ version } "
9583 end
0 commit comments