Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tom Niget
slapos
Commits
035c345c
Commit
035c345c
authored
Jul 05, 2023
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix dehydrated command
parent
b9cae795
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
23 deletions
+26
-23
software/autocert/buildout.hash.cfg
software/autocert/buildout.hash.cfg
+1
-1
software/autocert/instance-autocert.cfg.jinja2.in
software/autocert/instance-autocert.cfg.jinja2.in
+25
-22
No files found.
software/autocert/buildout.hash.cfg
View file @
035c345c
...
...
@@ -19,7 +19,7 @@ md5sum = 9e584e5273ecf222da40b0f318fd62fd
[template-autocert]
filename = instance-autocert.cfg.jinja2.in
md5sum =
90f9070ee1ea7fa1c5b07558ed772888
md5sum =
4f914e5bf419009cb627f1314b76db63
[template-dehydrated-config]
filename = config.in
...
...
software/autocert/instance-autocert.cfg.jinja2.in
View file @
035c345c
{% set folder_list = [] -%}
{% set part_list = [] -%}
{% set domain_list = [] -%}
[httpd-wrapper]
recipe = slapos.cookbook:simplehttpserver
...
...
@@ -57,6 +58,16 @@ command-line =
--register --accept-terms
wrapper-path = ${directory:scripts}/dehydrated-register
[dehydrated-wrapper]
<= base-wrapper
command-line =
{{ parameter_dict['dehydrated-location'] }}/dehydrated
--config ${dehydrated-config:output}
--cron
wrapper-path = ${directory:scripts}/dehydrated
depends =
${dehydrated-domains.txt:recipe}
[caucase-updater]
recipe = slapos.cookbook:wrapper
command-line =
...
...
@@ -78,22 +89,7 @@ environment =
{% set domain = domain_dict['domain-list'][0] -%}
{% set kedifa_id = domain_dict['kedifa-id'] -%}
{% do folder_list.append(domain) -%}
[dehydrated-domains-{{ domain }}]
recipe = slapos.recipe.template
inline =
{{ ' ' ~ ' '.join(domain_dict['domain-list']) }}
output = ${directory:dehydrated}/{{ domain }}/domains.txt
[dehydrated-wrapper-{{ domain }}]
<= base-wrapper
command-line =
{{ parameter_dict['dehydrated-location'] }}/dehydrated
--config ${dehydrated-config:output}
--domains-txt {{ "${dehydrated-domains-" ~ domain ~ ":output}" }}
--cron
wrapper-path = ${directory:services}/dehydrated-{{ domain.replace('\.', '-') }}
depends =
{{ "${dehydrated-domains-" ~ domain ~ ":recipe}" }}
{% do domain_list.append(' '.join(domain_dict['domain-list'])) -%}
[kedifa-generate-auth-{{ domain }}]
<= base-wrapper
...
...
@@ -112,25 +108,30 @@ wrapper-path = ${directory:scripts}/kedifa-genauth-{{ domain.replace('\.', '-')
command-line =
{{ parameter_dict['kedifa-location'] }}/contrib/shell/kedifa_update_cert
${directory:kedifa}/{{ domain }}.sh
${directory:dehydrated}/
{{ domain }}/
certs/{{ domain }}/privkey.pem
${directory:dehydrated}/
{{ domain }}/
certs/{{ domain }}/fullchain.pem
${directory:dehydrated}/certs/{{ domain }}/privkey.pem
${directory:dehydrated}/certs/{{ domain }}/fullchain.pem
wait-for-files =
${directory:dehydrated}/
{{ domain }}/
certs/{{ domain }}/fullchain.pem
${directory:dehydrated}/certs/{{ domain }}/fullchain.pem
wrapper-path = ${directory:bin}/kedifa-upload-{{ domain.replace('\.', '-') }}
depends =
{{ " ${dehydrated-wrapper-" ~ domain ~ ":recipe}" }}
{{ " ${kedifa-generate-auth-" ~ domain ~ ":recipe}" }}
{{ "${kedifa-generate-auth-" ~ domain ~ ":recipe}" }}
[cron-entry-{{ domain }}]
<= cron
recipe = slapos.cookbook:cron.d
name = {{ domain }}
name =
upload-
{{ domain }}
frequency = 0 0 * * 0
command = {{ "${kedifa-upload-" ~ domain ~ ":wrapper-path}" }}
{% do part_list.append("cron-entry-" ~ domain) -%}
{% endfor %}
[dehydrated-domains.txt]
recipe = slapos.recipe.template
inline =
{{ '\n '.join(domain_list) }}
output = ${directory:dehydrated}/domains.txt
[instance-parameter]
kedifa-caucase-url = {{ slapparameter_dict['kedifa-caucase-url'] }}
kedifa-url = {{ slapparameter_dict['kedifa-base-url'] }}
...
...
@@ -156,6 +157,7 @@ tmp = ${:srv}/tmp
acme = ${:www}/.well-known/acme-challenge
caucase = ${:etc}/caucase
dehydrated = ${:etc}/dehydrated
domains.d = ${:dehydrated}/domains.txt.d
kedifa = ${:etc}/kedifa
{% for name in folder_list -%}
{{ name }} = ${:dehydrated}/{{ name }}
...
...
@@ -171,6 +173,7 @@ parts =
httpd-listen-promise
httpd-url-promise
dehydrated-register
dehydrated-wrapper
# Complete parts with sections
{{ part_list | join('\n ') }}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment