Commit b9cae795 authored by Alain Takoudjou's avatar Alain Takoudjou

Add json schema

parent e61b4bd2
...@@ -19,7 +19,7 @@ md5sum = 9e584e5273ecf222da40b0f318fd62fd ...@@ -19,7 +19,7 @@ md5sum = 9e584e5273ecf222da40b0f318fd62fd
[template-autocert] [template-autocert]
filename = instance-autocert.cfg.jinja2.in filename = instance-autocert.cfg.jinja2.in
md5sum = cf6b10e4460b5660a74322daa29d988d md5sum = 90f9070ee1ea7fa1c5b07558ed772888
[template-dehydrated-config] [template-dehydrated-config]
filename = config.in filename = config.in
......
...@@ -74,7 +74,7 @@ recipe = slapos.cookbook:wrapper ...@@ -74,7 +74,7 @@ recipe = slapos.cookbook:wrapper
environment = environment =
PATH={{ openssl_location }}/bin:{{ curl_location }}/bin:/usr/local/bin:/usr/bin:/bin 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 domain = domain_dict['domain-list'][0] -%}
{% set kedifa_id = domain_dict['kedifa-id'] -%} {% set kedifa_id = domain_dict['kedifa-id'] -%}
{% do folder_list.append(domain) -%} {% do folder_list.append(domain) -%}
......
{
"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"
}
}
}
{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"description": "Values returned by HTTPS certificate automation instantiation.",
"additionalProperties": false,
"properties": {},
"type": "object"
}
{
"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"
}
}
}
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