From 6ff3994dbb9b44a919ded00882db9b57f92fe228 Mon Sep 17 00:00:00 2001 From: notgne2 Date: Sat, 7 Nov 2020 11:56:22 -0700 Subject: Greatly expand documentation --- interface/README.md | 39 -------------- interface/deploy.json | 117 ------------------------------------------ interface/deploy.json.license | 3 -- 3 files changed, 159 deletions(-) delete mode 100644 interface/README.md delete mode 100644 interface/deploy.json delete mode 100644 interface/deploy.json.license (limited to 'interface') diff --git a/interface/README.md b/interface/README.md deleted file mode 100644 index f61a69f..0000000 --- a/interface/README.md +++ /dev/null @@ -1,39 +0,0 @@ - - -A flake must have a `deploy` output with the following structure: - -``` -deploy -├── -└── nodes - ├── - │   ├── - │   ├── hostname - │   ├── profilesOrder - │   └── profiles - │   ├── - │   │   ├── - │   │   ├── bootstrap - │   │   ├── profilePath - │   │   └── path - │   └── ... - └── ... -``` - -Where `` are all optional and can be one or multiple of: - -- `sshUser` -- user to connect as -- `user` -- user to install and activate profiles with -- `sshOpts` -- options passed to `nix copy` and `ssh` -- `fastConnection` -- whether the connection from this host to the target one is fast (if it is, don't substitute on target and copy the entire closure) [default: `false`] -- `autoRollback` -- whether to roll back when the deployment fails [default: `false`] - -A formal definition for the structure can be found in [the JSON schema](./deploy.json) - -For every profile of every node, arguments are merged with `` taking precedence over `` and `` taking precedence over top-level. - -Certain read values can be overridden by supplying flags to the deploy binary, for example `deploy --auto-rollback true .` will enable automatic rollback for all nodes being deployed to, regardless of settings. \ No newline at end of file diff --git a/interface/deploy.json b/interface/deploy.json deleted file mode 100644 index fa45e50..0000000 --- a/interface/deploy.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft/2019-09/schema#", - "title": "Deploy", - "description": "Matches a correct deploy attribute of a flake", - "definitions": { - "generic_settings": { - "type": "object", - "properties": { - "sshUser": { - "type": "string" - }, - "user": { - "type": "string" - }, - "sshOpts": { - "type": "array", - "items": { - "type": "string" - } - }, - "fastConnection": { - "type": "boolean" - }, - "autoRollback": { - "type": "boolean" - }, - "magicRollback": { - "type": "boolean" - }, - "confirmTimeout": { - "type": "integer" - }, - "tempPath": { - "type": "string" - } - } - }, - "node_settings": { - "type": "object", - "properties": { - "hostname": { - "type": "string" - }, - "profilesOrder": { - "type": "array", - "items": { - "type": "string" - }, - "uniqueItems": true - }, - "profiles": { - "type": "object", - "patternProperties": { - "[A-z][A-z0-9_-]*": { - "allOf": [ - { - "$ref": "#/definitions/generic_settings" - }, - { - "$ref": "#/definitions/profile_settings" - } - ] - } - }, - "additionalProperties": false - } - }, - "required": [ - "hostname" - ] - }, - "profile_settings": { - "type": "object", - "properties": { - "path": { - "type": "string" - }, - "bootstrap": { - "type": "string" - }, - "profilePath": { - "type": "string" - } - }, - "required": [ - "path" - ] - } - }, - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/generic_settings" - }, - { - "type": "object", - "properties": { - "nodes": { - "type": "object", - "patternProperties": { - "[A-z][A-z0-9_-]*": { - "allOf": [ - { - "$ref": "#/definitions/generic_settings" - }, - { - "$ref": "#/definitions/node_settings" - } - ] - } - }, - "additionalProperties": false - } - } - } - ] -} \ No newline at end of file diff --git a/interface/deploy.json.license b/interface/deploy.json.license deleted file mode 100644 index 9e9897d..0000000 --- a/interface/deploy.json.license +++ /dev/null @@ -1,3 +0,0 @@ -SPDX-FileCopyrightText: 2020 Serokell - -SPDX-License-Identifier: MPL-2.0 \ No newline at end of file -- cgit v1.2.3