aboutsummaryrefslogtreecommitdiff
path: root/schemas_json
diff options
context:
space:
mode:
authorbozo.kopic <bozo.kopic@gmail.com>2017-07-03 02:47:27 +0200
committerbozo.kopic <bozo.kopic@gmail.com>2017-07-03 02:47:27 +0200
commitfebfac15fa1c8342620aae16035a5a75e8a2be4b (patch)
treef7a36e6fc7264bf34b408477789639d0c26dacb3 /schemas_json
parentc75e05b2fcbd08ec77a2ac85837f9f58829a44f6 (diff)
playground - testing executor functionality
Diffstat (limited to 'schemas_json')
-rw-r--r--schemas_json/project.yaml49
1 files changed, 49 insertions, 0 deletions
diff --git a/schemas_json/project.yaml b/schemas_json/project.yaml
new file mode 100644
index 0000000..214e388
--- /dev/null
+++ b/schemas_json/project.yaml
@@ -0,0 +1,49 @@
+---
+"$schema": "http://json-schema.org/schema#"
+id: "hatter://project.yaml#"
+title: Project
+description: Project configuration
+type: object
+required:
+ - domain
+ - ssh_username
+ - ssh_key
+ - script
+properties:
+ uri:
+ title: URI
+ description: |
+ Libvirt URI
+ type: string
+ default: "qemu:///system"
+ domain:
+ title: Domain
+ description: |
+ Domain registered with libvirt used as execution environment
+ type: string
+ snapshot:
+ title: Snapshot
+ description: |
+ Snapshot used as initial execution environment state
+ type: string
+ ssh_username:
+ title: SSH key
+ description: |
+ Username for connecting to VM guest SSH daemon
+ type: string
+ ssh_key:
+ title: SSH key
+ description: |
+ Content of SSH key used for connecting to VM guest SSH daemon
+ type: string
+ script:
+ title: Script
+ description: |
+ List of shell commands executed inside VM guest
+ type: array
+ items:
+ title: Command
+ description: |
+ Single shell command
+ type: string
+...