Commit 43439ddb authored by Daniele Venzano's avatar Daniele Venzano

Start work on the template schema

parent c102b04e
{
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
"service": {
"type": "object",
"properties": {
"group": {
"type": "string"
},
"image": {
"type": "string"
},
"ports": {
},
"environment": {
},
"volumes": {
},
"startup_order": {
"type": "integer"
}
},
"additionalProperties": false,
"required": ["group", "image", "ports", "environment", "volumes", "startup_order"]
}
},
"type": "object",
}
......@@ -23,7 +23,6 @@ import zoe_api.master_api
import zoe_lib.applications
import zoe_lib.exceptions
import zoe_lib.state
import zoe_lib.zapps.zapp_storage
from zoe_lib.config import get_conf
log = logging.getLogger(__name__)
......
......@@ -38,9 +38,6 @@ def _check_configuration_sanity():
if config.get_conf().auth_type == 'ldap' and not zoe_api.auth.ldap.LDAP_AVAILABLE:
log.error("LDAP authentication requested, but 'pyldap' module not installed.")
return 1
if not os.access(config.get_conf().zapp_storage, os.W_OK):
log.error("Cannot write to ZApp storage path {}".format(config.get_conf().zapp_storage))
return 1
return 0
......
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