Commit Graph

16 Commits

Author SHA1 Message Date
Matteo Cypriani 20b84f300e Renamed cluster/ -> ssh_tools/
And renamed utilities to avoid "cluster".
2019-10-21 11:22:08 +02:00
mcy 6b1e766cf0 [cluster] convert README to MarkDown 2018-05-18 16:39:02 +02:00
Matteo Cypriani b00b2eb16b [cluster] minor improvements & shellcheck 2018-04-11 22:56:01 +02:00
Matteo Cypriani fcdd7dc02c Add TODOs 2017-09-22 16:45:16 -04:00
Matteo Cypriani 6ebe287e2f Improve READMEs 2017-09-22 16:44:57 -04:00
Matteo Cypriani 4d5efe91cc [cluster] Support XDG Base Directory Specification
Use $XDG_CONFIG_HOME if set, instead of $HOME/.config.
2014-05-07 15:53:31 -04:00
Matteo Cypriani b97bf7ed14 [cluster] cluster-deploy: check cluster-ping dep.
Make sure cluster-ping is present along with cluster-deploy.
2014-05-07 15:53:31 -04:00
Matteo Cypriani 0eeeab14fc [cluster] Test the existence of the hosts' list
We now test if the hosts' list file exists before to work on it.
2013-05-20 14:46:39 -04:00
Matteo Cypriani 3a505db37b [cluster] deploy: skip non-existing files
In "one-by-one" mode, test the existence of a file before to try to
transfer it.
2013-05-20 14:40:51 -04:00
Matteo Cypriani 2c6f1a97ea [cluster] deploy: fix destination directory
"~" is resolved by the local shell (dumb me!). We now get the
destination directory by connecting to the first alive host from the
hosts' list (using cluster-ping), and get the user's home directory.
This is not perfect because it assumes the home directory is the same on
each host.

We could add an option in the future to do the test on each host, but
this would be significantly slower. Alternatively, we could allow to use
scp instead of pscp (because scp is smart enough to get the remote
user's home directory by itself), transferring files once at time, but
again, it would be slow.
2013-05-20 14:40:29 -04:00
Matteo Cypriani 5a44742c28 [cluster] deploy: add -r and -R options (rsync)
The -r option allows to use prsync instead of pscp. The -R option is the
same, except the --delete option is passed to rsync.
2013-05-02 12:17:22 -04:00
Matteo Cypriani 044f120fcc [cluster] deploy: add -P option
The -P option allows to transfer the files in parallel rather than one
by one.
2013-05-02 11:18:55 -04:00
Matteo Cypriani 2639f9aece [cluster] deploy: send to user's home
Set the destination directory to ~ instead of /root.
2013-05-02 11:17:55 -04:00
Matteo Cypriani 3226138f25 [cluster] Give up using getopt
getopt prevents using spaces in the arguments.
2013-05-02 10:56:28 -04:00
Matteo Cypriani 97b1630fc8 [cluster] Don't force root login any more
The login was hard-coded to root, this was fixed to use by default the
local login name. The option -l was added to allow to specify a
different login name.
2013-05-01 16:12:09 -04:00
Matteo Cypriani 9d5b36f5bd Add cluster utilities 2013-04-29 16:43:41 -04:00