diff --git a/stack/caucase/buildout.hash.cfg b/stack/caucase/buildout.hash.cfg index 19fbe0e8e999f2cceee1c7afb6c0ed026a2c9b7f..2f26b6a56282d6e861f242f537863c6575a42152 100644 --- a/stack/caucase/buildout.hash.cfg +++ b/stack/caucase/buildout.hash.cfg @@ -15,4 +15,4 @@ [caucase-jinja2-library] filename = caucase.jinja2.library -md5sum = 93dae9ec9df9c095f69b175e5772677e +md5sum = 9a7247cdb2ee1d66c074b0660c54713f diff --git a/stack/caucase/caucase.jinja2.library b/stack/caucase/caucase.jinja2.library index 9cc20183204c1454e14f950cb7aab891ffb82b3a..e9eeb99731c646d86a84d34d69df6338a43bdb44 100644 --- a/stack/caucase/caucase.jinja2.library +++ b/stack/caucase/caucase.jinja2.library @@ -52,7 +52,8 @@ config-command = '{{ buildout_bin_directory }}/caucase-probe' 'http://{{ netloc mode='service', template_csr=None, template_csr_pem=None, - openssl=None + openssl=None, + promise=True ) -%} [{{ prefix }}-directory] recipe = slapos.cookbook:mkdirectory @@ -104,6 +105,15 @@ command-line = '{{ buildout_bin_directory }}/caucase-updater' {% if key_path %}--key '{{ key_path }}' {%- endif %} {% if on_renew %}--on-renew '{{ on_renew }}' {%- endif %} {% if max_sleep %}--max-sleep '{{ max_sleep }}' {%- endif %} +{% if promise -%} +[{{ prefix }}-promise] +<= monitor-promise-base +module = check_certificate +name = {{ prefix }}.py +config-certificate = {{ crt_path }} +config-key = {{ key_path }} +config-certificate-expiration-days = 15 +{%- endif %} {%- endmacro %} {% macro rerequest(prefix, buildout_bin_directory, template, csr, key) -%}