Quick and Dirty zeroconf cluster
Want to see pretty graphs? Log in now!
npm install aneth
|40||downloads in the last month|
|Last Published By|
|Version||0.2.0 last updated a year ago|
|Keywords||cluster, zeroconf, hosts|
|Dependencies (6)||underscore, commander, mdns, growl, coffee-script, plist|
A quick and dirty utility that uses Zeroconf to advertize its host machine with a specified hostname
on the network. It can also listen for these advertisements and manage
so that machines are automatically accessible by their provided hostname from any member running
$ aneth start <hostname> [-s|--service <serviceName>] [-w|--watch] [-p|--port port] [-A|--aliases aliases]
You can provide a
serviceNameparameter that will be used to listen for advertisements. Otherwise,
aneth-hostswill be used.
--watchoptions tells Aneth to watch for advertised hosts on the network and modify
/etc/hostsaccordingly (you'll need to execute that with
sudofor it to work).
--portoptions is for specifying the port number to use to advertise the current machine.
--aliasesoptions is set of local hostname aliases in the form of
$ aneth install <hostname> [--service <serviceName>] [--watch]
This will install Aneth so it is started on each system reboots, with the provided configurations. Currently, only Mac OS X is supported, simply using a launchd.plist(5). I know it should work pretty easily on Linux too, but I'm no expert enough to provide a proper, portable solution. Currently, I'm simply creating a dead-simple runit setup. I'm kinda lazy, I know. You are very welcome to fork and submit a patch that would include generating and installing a generic init script (or anything really).
You will need to install globally if you want the
aneth executable accessible anywhere.
$ npm install -g aneth
On Mac, it will just work. On a linux machine, you need to install Avahi, a Bonjour compatibility library.