summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-12-02 09:00:53 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-12-02 09:00:53 +0000
commit0861a2054145b9558f108e0662b35061db2a19ec (patch)
treeb26d10ff748da883014af7cd428f660186b39bf3
parenta06ebc0405235a3081c77c8db694c65d3ff3e81c (diff)
parent81026592a953fcd0c90419ac5d01d25eefda2cba (diff)
downloadmorph-0861a2054145b9558f108e0662b35061db2a19ec.tar.gz
Merge branch 'baserock/pedroalvarez/fix-tests'
Reviewed-by: - Francisco Redondo Marchena - James Thomas
-rw-r--r--morphlib/exts/kvm.write.help7
-rw-r--r--morphlib/exts/virtualbox-ssh.write.help39
-rw-r--r--morphlib/plugins/deploy_plugin.py6
-rw-r--r--tests.branching/edit-clones-chunk.stdout4
-rw-r--r--tests.branching/foreach-handles-full-urls.stdout3
5 files changed, 33 insertions, 26 deletions
diff --git a/morphlib/exts/kvm.write.help b/morphlib/exts/kvm.write.help
index db2c0d97..26a54d9c 100644
--- a/morphlib/exts/kvm.write.help
+++ b/morphlib/exts/kvm.write.help
@@ -28,8 +28,8 @@ help: |
kilo-, mega-, or gigabytes. For example, `DISK_SIZE=100G` would create a
100 gigabyte disk image. **This parameter is mandatory**.
- * RAM_SIZE=X: The amount of RAM that the virtual machine should allocate for
- itself from the host. `X` is interpreted in the same was as for
+ * RAM_SIZE=X: The amount of RAM that the virtual machine should allocate
+ for itself from the host. `X` is interpreted in the same was as for
DISK_SIZE`, and defaults to `1G`
* VCPUS=n: the number of virtual CPUs for the VM. Allowed values 1-32. Do
@@ -42,5 +42,6 @@ help: |
* AUTOSTART=<VALUE>` - boolean. If it is set, the VM will be started when
it has been deployed.
- (See `morph help deploy` for details of how to pass parameters to write extensions)
+ (See `morph help deploy` for details of how to pass parameters to write
+ extensions)
diff --git a/morphlib/exts/virtualbox-ssh.write.help b/morphlib/exts/virtualbox-ssh.write.help
index ad2a83eb..b4c59553 100644
--- a/morphlib/exts/virtualbox-ssh.write.help
+++ b/morphlib/exts/virtualbox-ssh.write.help
@@ -26,17 +26,17 @@ help: |
which it is being deployed.
* DISK_SIZE=X: **(MANDATORY)** the size of the VM's primary virtual hard
- disk. `X` should use a suffix of `K`, `M`, or `G` (in upper or lower case)
- to indicate kilo-, mega-, or gigabytes. For example, `DISK_SIZE=100G`
- would create a 100 gigabyte virtual hard disk.
+ disk. `X` should use a suffix of `K`, `M`, or `G` (in upper or lower
+ case) to indicate kilo-, mega-, or gigabytes. For example,
+ `DISK_SIZE=100G` would create a 100 gigabyte virtual hard disk.
- * RAM_SIZE=X: The amount of RAM that the virtual machine should allocate for
- itself from the host. `X` is interpreted in the same as for DISK_SIZE`,
- and defaults to `1G`.
+ * RAM_SIZE=X: The amount of RAM that the virtual machine should allocate
+ for itself from the host. `X` is interpreted in the same as for
+ DISK_SIZE, and defaults to `1G`.
* VCPUS=n: the number of virtual CPUs for the VM. Allowed values 1-32. Do
- not use more CPU cores than you have available physically (real cores, no
- hyperthreads).
+ not use more CPU cores than you have available physically (real cores,
+ no hyperthreads).
* INITRAMFS_PATH=path: the location of an initramfs for the bootloader to
tell Linux to use, rather than booting the rootfs directly.
@@ -45,8 +45,8 @@ help: |
it has been deployed.
* VAGRANT=<VALUE> - boolean. If it is set, then networking is configured
- so that the VM will work with Vagrant. Otherwise networking is configured
- to run directly in VirtualBox.
+ so that the VM will work with Vagrant. Otherwise networking is
+ configured to run directly in VirtualBox.
* HOST_IPADDR=<ip_address> - the IP address of the VM host.
@@ -61,9 +61,10 @@ help: |
eth0:dhcp
eth1:static,address=10.0.0.1,netmask=255.255.0.0
- An example of the NETWORK_CONFIG parameter
+ An example of the NETWORK_CONFIG parameter (It should be in one line)
- `"lo:loopback;eth0:static,address=192.168.100.2,netmask=255.255.255.0;eth1:dhcp,hostname=$(hostname)"`
+ `"lo:loopback;eth0:static,address=192.168.100.2,netmask=255.255.255.0;
+ eth1:dhcp,hostname=$(hostname)"`
It is useful to configure one interface to use NAT to give the VM access
to the outside world and another interface to use the Virtual Box host
@@ -73,14 +74,18 @@ help: |
interface is configured statically.
Note: you must give the host-only adapter interface an address that lies
- **on the same network** as the host adapter. So if the host adapter has an
- IP of 192.168.100.1 eth0 should have an address such as 192.168.100.42.
+ **on the same network** as the host adapter. So if the host adapter has
+ an IP of 192.168.100.1 eth0 should have an address such as
+ 192.168.100.42.
The settings of the host adapter, including its IP can be changed either
- in the VirtualBox manager UI (https://www.virtualbox.org/manual/ch03.html#settings-network)
- or via the VBoxManage command line (https://www.virtualbox.org/manual/ch08.html#idp57572192)
+ in the VirtualBox manager UI
+ (https://www.virtualbox.org/manual/ch03.html#settings-network)
+ or via the VBoxManage command line
+ (https://www.virtualbox.org/manual/ch08.html#idp57572192)
See Chapter 6 of the VirtualBox User Manual for more information about
virtual networking (https://www.virtualbox.org/manual/ch06.html)
- (See `morph help deploy` for details of how to pass parameters to write extensions)
+ (See `morph help deploy` for details of how to pass parameters to write
+ extensions)
diff --git a/morphlib/plugins/deploy_plugin.py b/morphlib/plugins/deploy_plugin.py
index f7bb4ffa..87e129e5 100644
--- a/morphlib/plugins/deploy_plugin.py
+++ b/morphlib/plugins/deploy_plugin.py
@@ -182,14 +182,16 @@ class DeployPlugin(cliapp.Plugin):
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 …`
+ 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`
diff --git a/tests.branching/edit-clones-chunk.stdout b/tests.branching/edit-clones-chunk.stdout
index d0bcb565..9a62092d 100644
--- a/tests.branching/edit-clones-chunk.stdout
+++ b/tests.branching/edit-clones-chunk.stdout
@@ -13,9 +13,7 @@ test:hello
* remote origin
Fetch URL: file://TMP/hello
Push URL: file://TMP/hello
- HEAD branch (remote HEAD is ambiguous, may be one of the following):
- alfred
- master
+ HEAD branch: master
Remote branches:
alfred tracked
master tracked
diff --git a/tests.branching/foreach-handles-full-urls.stdout b/tests.branching/foreach-handles-full-urls.stdout
index cee2f70a..6b8728d0 100644
--- a/tests.branching/foreach-handles-full-urls.stdout
+++ b/tests.branching/foreach-handles-full-urls.stdout
@@ -1,4 +1,5 @@
file://TMP/morphs
-# On branch master
+On branch master
+Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean