Commit 84f6fc89 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

html5as: Add port listening promise

parent b3b2a5cd
...@@ -21,7 +21,7 @@ md5sum = 8a1383f7508a911c0c2d81445b5d4250 ...@@ -21,7 +21,7 @@ md5sum = 8a1383f7508a911c0c2d81445b5d4250
[instance_html5as] [instance_html5as]
_update_hash_filename_ = instance_html5as.cfg.in _update_hash_filename_ = instance_html5as.cfg.in
md5sum = beadeb9706ae44e13e6b60699b0da0d1 md5sum = 7e178ae20bdbf0ed58e6d8fb54226cdb
[template_nginx_conf] [template_nginx_conf]
_update_hash_filename_ = templates/nginx_conf.in _update_hash_filename_ = templates/nginx_conf.in
......
...@@ -10,6 +10,7 @@ parts = ...@@ -10,6 +10,7 @@ parts =
mime_types mime_types
launcher launcher
nginx-graceful nginx-graceful
port-listening-promise
publish-connection-information publish-connection-information
# Define egg directories to be the one from Software Release # Define egg directories to be the one from Software Release
...@@ -160,6 +161,14 @@ mode = 0700 ...@@ -160,6 +161,14 @@ mode = 0700
context = context =
section param_html5as html5as section param_html5as html5as
# Port Listening checking promise
[port-listening-promise]
<= monitor-promise-base
module = check_port_listening
name = nginx-port-listening.py
config-hostname = ${html5as:ip}
config-port = ${html5as:port}
# Publish nginx address # Publish nginx address
[publish-connection-information] [publish-connection-information]
recipe = slapos.cookbook:publish recipe = slapos.cookbook:publish
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment