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
Steven Gueguen
slapos
Commits
b9cae795
Commit
b9cae795
authored
Jul 04, 2023
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add json schema
parent
e61b4bd2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
74 additions
and
2 deletions
+74
-2
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
+1
-1
software/autocert/instance-input-schema.json
software/autocert/instance-input-schema.json
+51
-0
software/autocert/instance-output-schema.json
software/autocert/instance-output-schema.json
+7
-0
software/autocert/software.cfg.json
software/autocert/software.cfg.json
+14
-0
No files found.
software/autocert/buildout.hash.cfg
View file @
b9cae795
...
...
@@ -19,7 +19,7 @@ md5sum = 9e584e5273ecf222da40b0f318fd62fd
[template-autocert]
filename = instance-autocert.cfg.jinja2.in
md5sum =
cf6b10e4460b5660a74322daa29d988d
md5sum =
90f9070ee1ea7fa1c5b07558ed772888
[template-dehydrated-config]
filename = config.in
...
...
software/autocert/instance-autocert.cfg.jinja2.in
View file @
b9cae795
...
...
@@ -74,7 +74,7 @@ recipe = slapos.cookbook:wrapper
environment =
PATH={{ openssl_location }}/bin:{{ curl_location }}/bin:/usr/local/bin:/usr/bin:/bin
{% for
domain_dict in slapparameter_dict["kedifa-domain-list"]
%}
{% for
_, domain_dict in slapparameter_dict["kedifa-domain-dict"].items()
%}
{% set domain = domain_dict['domain-list'][0] -%}
{% set kedifa_id = domain_dict['kedifa-id'] -%}
{% do folder_list.append(domain) -%}
...
...
software/autocert/instance-input-schema.json
0 → 100644
View file @
b9cae795
{
"type"
:
"object"
,
"$schema"
:
"http://json-schema.org/draft-04/schema"
,
"title"
:
"Input Parameters"
,
"properties"
:
{
"registration-email"
:
{
"title"
:
"Certificate registration-email"
,
"description"
:
"Certificate registration-email."
,
"type"
:
"string"
,
"default"
:
""
},
"kedifa-caucase-url"
:
{
"title"
:
"Kedifa caucase URL"
,
"description"
:
"Kedifa caucase URL. Please check this parameter from your slave frontend connexion information."
,
"type"
:
"string"
,
"format"
:
"uri"
},
"kedifa-base-url"
:
{
"title"
:
"Kedifa base URL"
,
"description"
:
"Kedifa base URL. Please check this parameter from your slave frontend connexion information."
,
"type"
:
"string"
,
"format"
:
"uri"
},
"kedifa-domain-dict"
:
{
"title"
:
"Domains definition"
,
"description"
:
"Domains definition"
,
"patternProperties"
:
{
".*"
:
{
"properties"
:
{
"kedifa-id"
:
{
"title"
:
"Kefifa ID"
,
"description"
:
"Kedifa id. Please check this parameter from your slave frontend connexion information."
,
"type"
:
"string"
,
"default"
:
""
},
"domain-list"
:
{
"title"
:
"Domain name"
,
"description"
:
"Domain name, can be more than one."
,
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
}
},
"type"
:
"object"
}
},
"type"
:
"object"
}
}
}
software/autocert/instance-output-schema.json
0 → 100644
View file @
b9cae795
{
"$schema"
:
"https://json-schema.org/draft/2019-09/schema"
,
"description"
:
"Values returned by HTTPS certificate automation instantiation."
,
"additionalProperties"
:
false
,
"properties"
:
{},
"type"
:
"object"
}
software/autocert/software.cfg.json
0 → 100644
View file @
b9cae795
{
"name"
:
"HTTPS certificate update automation"
,
"description"
:
"HTTPS certificate update automation for letsencrypt."
,
"serialisation"
:
"xml"
,
"software-type"
:
{
"default"
:
{
"title"
:
"Default"
,
"software-type"
:
"default"
,
"description"
:
"Default"
,
"request"
:
"instance-input-schema.json"
,
"response"
:
"instance-output-schema.json"
}
}
}
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