aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorJoseph Wayne Norton <[email protected]>2012-05-11 18:12:31 +0900
committerJoseph Wayne Norton <[email protected]>2012-05-12 00:56:41 +0900
commitc46684b1550da8260c8d3d6329685cc9770d6cfe (patch)
tree0746504283f6fb3cc50814942133193afa0d20df /README.md
parenta284ba75b4328d766f7950002eca390cbab64fba (diff)
downloadkerl-c46684b1550da8260c8d3d6329685cc9770d6cfe.tar.gz
kerl-c46684b1550da8260c8d3d6329685cc9770d6cfe.tar.bz2
kerl-c46684b1550da8260c8d3d6329685cc9770d6cfe.zip
Add 'kerl deploy' command to deploy an installation to a given host and directory
Diffstat (limited to 'README.md')
-rw-r--r--README.md46
1 files changed, 43 insertions, 3 deletions
diff --git a/README.md b/README.md
index e8c9815..84ea794 100644
--- a/README.md
+++ b/README.md
@@ -76,7 +76,7 @@ You can verify your build has been registered:
R14B02,r14b02_hipe
Now install a build to some location (optionally you can disable agner support by adding KERL_DISABLE_AGNER=yes to your $HOME/.kerlrc file, or on the contrary define a list of additional packages to install using the KERL_AGNER_AUTOINSTALL directive in the same file or on the command line):
-
+
$ kerl install r14b02 /path/to/install/dir/
Installing Erlang/OTP R14B02 (r14b02) in /path/to/install/dir...
Installing agner in /path/to/install/dir...
@@ -144,13 +144,23 @@ You can get an overview of the current kerl state with:
/path/to/install/dir
You can delete builds and installations with the following commands:
-
+
$ kerl delete build r14b02
The r14b02 build has been deleted
$ kerl delete installation /path/to/install/dir
The installation in /path/to/install/dir has been deleted
+You can easily deploy an installation to another host having ssh and rsync access with the following command:
+
+ $ kerl deploy anotherhost /path/to/install/dir
+
+ Cloning Erlang/OTP r14b02 (/path/to/install/dir) to anotherhost (/path/to/install/dir) ...
+ On anotherhost, you can activate this installation running the following command:
+ . /path/to/install/dir/activate
+ Later on, you can leave the installation typing:
+ kerl_deactivate
+
You can update the agner version associated with a specific build (this will only affect installations made after that):
$ kerl update agner r14b02
@@ -183,6 +193,8 @@ You can set the following variables:
- KERL_USE_AUTOCONF use autoconf in the builds process
- KERL_INSTALL_MANPAGES if non-empty will install manpages
- KERL_INSTALL_HTMLDOCS if non-empty will install HTML docs
+- KERL_DEPLOY_SSH_OPTIONS if additional options are required, e.g. "-qx -o PasswordAuthentication=no"
+- KERL_DEPLOY_RSYNC_OPTIONS if additional options are required, e.g. "--delete"
Glossary
========
@@ -241,7 +253,7 @@ Install a named build to the specified filesystem location
kerl install <build_name> [path]
-If path is ommited the current working directory will be used. However, if KERL_DEFAULT_INSTALL_DIR is defined in ~/.kerlrc, KERL_DEFAULT_INSTALL_DIR/<build-name> will be used instead.
+If path is omitted the current working directory will be used. However, if KERL_DEFAULT_INSTALL_DIR is defined in ~/.kerlrc, KERL_DEFAULT_INSTALL_DIR/<build-name> will be used instead.
*Note*: kerl assumes the specified directory is for its sole use. If you later delete it with the kerl delete command, the whole directory will be deleted, along with anything you may have added to it!
@@ -267,6 +279,34 @@ You can have manpages installed automatically setting KERL_INSTALL_MANPAGES=yes
You can have HTML docs installed automatically setting KERL_INSTALL_HTMLDOCS=yes in your $HOME/.kerlrc file or prepending it to the command line
+deploy
+------
+
+Deploy the specified installation to the given host and location
+
+### Syntax
+
+ kerl deploy <[user@]host> [directory] [remote_directory]
+
+If remote_directory is omitted the specified directory will be used.
+
+If directory and remote_directory is omitted the current working directory will be used.
+
+*NOTE*: kerl assumes the specified host is accessible via ssh and rsync.
+
+### Example
+
+ $ kerl deploy anotherhost /path/to/install/dir
+
+### Tuning
+
+#### Additional SSH options
+
+You can have additional options given to SSH by setting them in the KERL_DEPLOY_SSH_OPTIONS variable in your $HOME/.kerlrc file or on the command line, e.g. KERL_DEPLOY_SSH_OPTIONS="-qx -o PasswordAuthentication=no"
+
+#### Additional RSYNC options
+
+You can have additional options given to RSYNC by setting them in the KERL_DEPLOY_RSYNC_OPTIONS variable in your $HOME/.kerlrc file or on the command line, e.g. KERL_DEPLOY_RSYNC_OPTIONS="--delete"
update
------