Skip to content

Commit

Permalink
ampule: use the local node's cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
msantos committed Feb 17, 2014
1 parent b618b4b commit 5cef1f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,10 @@ https://github.com/msantos/erlxc

## Examples

`iex` must be running in distributed mode with the cookie set to the
highly secret value of "COOKIE":
`iex` must be running in distributed mode:

```
iex --cookie COOKIE --name ampule@192.168.213.54 -S mix
iex --cookie OMNOMNOM --name ampule@192.168.123.54 -S mix
```

* Run a pipeline via anonymous containers:
Expand Down
2 changes: 1 addition & 1 deletion lib/ampule.ex
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ defmodule Ampule do

gid = ListDict.fetch!(options, :gid)

cookie = ListDict.get(options, :cookie, "COOKIE")
cookie = ListDict.get(options, :cookie, :erlang.get_cookie)
bridge = ListDict.get(options, :bridge, "br0")
ipaddr = ListDict.get(options, :ipaddr, "dhcp")

Expand Down

0 comments on commit 5cef1f7

Please sign in to comment.