Skip to content

Commit

Permalink
quickfix for IPv6, added basic documentation to the default configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Naegele committed Jun 18, 2013
1 parent fa01121 commit daa4007
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions conf/master
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
# The address of the interface to bind to
#interface: 0.0.0.0

# Whether the master should listen for IPv6 connections. If this is set to True,
# the interface option must be adjusted too (for example: "interface: '::'")
#ipv6: False

# The tcp port used by the publisher
#publish_port: 4505

Expand Down
3 changes: 3 additions & 0 deletions conf/minion
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
# resolved, then the minion will fail to start.
#master: salt

# Set whether the minion should connect to the master via IPv6
#ipv6: False

# Set the number of seconds to wait before attempting to resolve
# the master hostname if name resolution fails. Defaults to 30 seconds.
# Set to zero if the minion should shutdown and not retry.
Expand Down
4 changes: 3 additions & 1 deletion salt/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,9 @@ def pub(self,
payload_kwargs['to'] = timeout

sreq = salt.payload.SREQ(
'tcp://{0[interface]}:{0[ret_port]}'.format(self.opts),
#'tcp://{0[interface]}:{0[ret_port]}'.format(self.opts),
'tcp://' + salt.utils.ip_bracket(self.opts['interface']) +
':' + self.opts['ret_port'],
)
payload = sreq.send('clear', payload_kwargs)

Expand Down

0 comments on commit daa4007

Please sign in to comment.