summaryrefslogtreecommitdiff
path: root/morphlib/plugins/deploy_plugin.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2014-12-01 14:24:25 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2014-12-01 14:24:25 +0000
commitdc16a9dc1b2900ac6d98a259f3688041f3313f96 (patch)
treed60af73ca591dbcd688b0b566ab50f54797b9902 /morphlib/plugins/deploy_plugin.py
parentf034691cba14d1919a3c8d1ffa41872ff754e1d3 (diff)
parent6927548cc4325e7866cd19e72c8876afea80b208 (diff)
downloadmorph-dc16a9dc1b2900ac6d98a259f3688041f3313f96.tar.gz
Merge branch 'master' of https://github.com/petefoth/morph
Reviewed-by: Richard Maw
Diffstat (limited to 'morphlib/plugins/deploy_plugin.py')
-rw-r--r--morphlib/plugins/deploy_plugin.py23
1 files changed, 23 insertions, 0 deletions
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: