Skip to content

Commit

Permalink
#60 added doc on --post-clone-cmd option
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashby, Jason (IMS) committed May 17, 2016
1 parent 3c46bc7 commit 7d3bb31
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ ezmomi clone --template centos67 --hostname test01 --cpus 2 --mem 4 --ips 172.10

`ips` takes any number of ips. See `ezmomi clone --help` for a list of params.

To optionally run a command/script after clone has started:

```
ezmomi clone --template centos67 --hostname test01 --cpus 2 --mem 4 --ips 172.10.16.203 172.10.16.204 --post-clone-cmd /usr/local/bin/additional-provisioning-steps.sh
```

This example would run /usr/local/bin/additional-provisioning-steps.sh on the same host ezmomi is run on. You can reference the `EZMOMI_CLONE_HOSTNAME` environment variable in your script to retrieve the `--hostname`.

##### Power Operations

Expand Down
2 changes: 1 addition & 1 deletion ezmomi/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "6.1.0"
__version__ = "6.1.1"

0 comments on commit 7d3bb31

Please sign in to comment.