Commit 96c1515d authored by Guillaume Hervier's avatar Guillaume Hervier

software/re6stnet: auto-restart services on SR upgrade.

parent 3c5b51c5
...@@ -58,7 +58,7 @@ port = 9026 ...@@ -58,7 +58,7 @@ port = 9026
error-log = ${directory:log}/apache-error.log error-log = ${directory:log}/apache-error.log
access-log = ${directory:log}/apache-access.log access-log = ${directory:log}/apache-access.log
pid-file = ${directory:run}/apache.pid pid-file = ${directory:run}/apache.pid
context = context =
key apache_port :port key apache_port :port
key re6st_ipv4 re6st-registry:ipv4 key re6st_ipv4 re6st-registry:ipv4
key re6st_port re6st-registry:port key re6st_port re6st-registry:port
...@@ -80,13 +80,19 @@ wrapper-path = {{ apache_wrapper }} ...@@ -80,13 +80,19 @@ wrapper-path = {{ apache_wrapper }}
command-line = "{{ parameter_dict['apache-location'] }}/bin/httpd" -f "${apache-conf:rendered}" -DFOREGROUND command-line = "{{ parameter_dict['apache-location'] }}/bin/httpd" -f "${apache-conf:rendered}" -DFOREGROUND
{% if uri_scheme == 'https' %} {% if uri_scheme == 'https' %}
[{{ section('apache-ca') }}] [apache-ca]
<= certificate-authority <= certificate-authority
recipe = slapos.cookbook:certificate_authority.request recipe = slapos.cookbook:certificate_authority.request
executable = ${apache-httpd:wrapper-path} executable = ${apache-httpd:wrapper-path}
wrapper = ${directory:services}/httpd wrapper = ${directory:bin}/httpd
key-file = ${certificate-authority:ca-private}/apache.key key-file = ${certificate-authority:ca-private}/apache.key
cert-file = ${certificate-authority:ca-certs}/apache.crt cert-file = ${certificate-authority:ca-certs}/apache.crt
[{{ section('apache-ca-service') }}]
recipe = slapos.cookbook:wrapper
command-line = ${apache-ca:wrapper}
wrapper-path = ${directory:services}/httpd
hash-files = ${buildout:directory}/software_release/buildout.cfg
{% endif %} {% endif %}
[apache-httpd-graceful] [apache-httpd-graceful]
...@@ -164,7 +170,7 @@ dh-file = ${re6st-registry-conf-dict:dh} ...@@ -164,7 +170,7 @@ dh-file = ${re6st-registry-conf-dict:dh}
slave-instance-list = ${slap-parameter:slave_instance_list} slave-instance-list = ${slap-parameter:slave_instance_list}
environment = environment =
PATH={{ openssl_bin }} PATH={{ openssl_bin }}
[re6stnet-manage] [re6stnet-manage]
...@@ -222,7 +228,7 @@ extends = ...@@ -222,7 +228,7 @@ extends =
{{ monitor2_template_rendered }} {{ monitor2_template_rendered }}
{{ logrotate_cfg }} {{ logrotate_cfg }}
parts = parts =
certificate-authority certificate-authority
logrotate-apache logrotate-apache
logrotate-entry-re6stnet logrotate-entry-re6stnet
......
...@@ -86,7 +86,7 @@ extra-context = ...@@ -86,7 +86,7 @@ extra-context =
[template-re6stnet] [template-re6stnet]
< = download-base < = download-base
filename = instance-re6stnet.cfg.in filename = instance-re6stnet.cfg.in
md5sum = 8c167f2adb2ed36aeaff773f59214981 md5sum = 09683c66c16361b77867d8f2e1140a35
[template-apache-conf] [template-apache-conf]
< = download-base < = download-base
......
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