From 3a3b4f7a31457fa9afd5d47d11d20c5ed4b79683 Mon Sep 17 00:00:00 2001 From: Pete Fotheringham Date: Mon, 1 Dec 2014 13:43:44 +0000 Subject: Action review comments - Document different ways of calling parameters - Allowed values for boolean parameters --- morphlib/plugins/deploy_plugin.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'morphlib/plugins/deploy_plugin.py') diff --git a/morphlib/plugins/deploy_plugin.py b/morphlib/plugins/deploy_plugin.py index dd0ba903..f7bb4ffa 100644 --- a/morphlib/plugins/deploy_plugin.py +++ b/morphlib/plugins/deploy_plugin.py @@ -177,6 +177,29 @@ class DeployPlugin(cliapp.Plugin): the _address_ of the trove, _not_ `user@...`, since `root@` will automatically be prepended to the server address.) + In addition to the `location`parameter, deployments can take additional + `KEY=VALUE` parameters. These can be provided in the following ways: + + 1. In the cluster definition file, e.g. + + … + systems: + - morph: systems/foo-system.morph + deploy: + foo: + HOSTNAME: foo + + 2. In the environment before running e.g. `HOSTNAME=foo morph deploy …` + + 3. On the command-line e.g. + `morph deploy clusters/foo.morph foo.HOSTNAME=foo` + + For any boolean `KEY=VALUE` parameters, allowed values are: + + +ve `yes`, `1`, `true`; + + -ve `no`, `0`, `false`; + The following `KEY=VALUE` parameters are supported for `rawdisk`, `virtualbox-ssh` and `kvm` and deployment types: -- cgit v1.2.1