RETIRED, Lightweight composition layer for Puppet TripleO
Go to file
Michele Baldessari 2f038b30e8 Make sure we bind the rabbit inter-cluster to a specific interface
Currently the inter-cluster communication port listens to all ip
addresses:
tcp 0 0 0.0.0.0:25672 0.0.0.0:* LISTEN 25631/beam.smp

In order to limit it to listen only to the network assigned to rabbitmq
we need to add the following:
{kernel, [
    ...
    {inet_dist_use_interface, {172,17,0,16}},
    ...
  ]}

In order to do the conversion from an ip address to the Erlang
representation we add a function that takes a string and returns a
converted output. The (~400 randomly generated) IPv6/4 addresses at [1]
have been parsed both via erl's built-in inet:parse_address() function
and our ruby implementation. All converted ip addresses resulted in the
same output [2], [3]. The only difference is that Erlang's parse_address()
considers network ip addresses (e.g. 10.0.0.0) invalid whereas the ruby
function does not. This should not be a problem as the use case here is
to bind a service to a specific ip address on an interface and if
anything we likely prefer the less strict behaviour, given that at least
in theory it is perfectly valid for an interface to have a network
address assigned to it.

[1] http://acksyn.org/files/tripleo/ip-addresses.txt
[2] http://acksyn.org/files/tripleo/ip-addresses-ruby.txt
[3] http://acksyn.org/files/tripleo/ip-addresses-erl.txt
Change-Id: I211c75b9bab25c545bcc7f90f34edebc92bba788
Partial-Bug: #1645898
2017-01-20 08:41:22 +01:00
lib Make sure we bind the rabbit inter-cluster to a specific interface 2017-01-20 08:41:22 +01:00
manifests Make sure we bind the rabbit inter-cluster to a specific interface 2017-01-20 08:41:22 +01:00
releasenotes Add support for not using admin_token in Ceph/RGW 2017-01-09 18:31:33 +01:00
spec Make sure we bind the rabbit inter-cluster to a specific interface 2017-01-20 08:41:22 +01:00
templates Add Docker Registry profile 2017-01-09 15:16:50 +01:00
.gitignore Add basic structure for ReNo 2016-12-03 13:16:33 +00:00
.gitreview Update .gitreview file for project rename 2015-06-12 23:12:30 +00:00
.sync.yml Initial msync run for all Puppet OpenStack modules 2015-08-18 14:30:54 +02:00
Gemfile Switch puppet-tripleo to use puppet-openstack_spec_helper 2016-09-22 21:26:23 -04:00
LICENSE Add basic structure for a Puppet module 2015-02-02 11:39:21 -05:00
metadata.json Merge "Fix puppet version for requirements in metadata" 2016-12-23 19:43:06 +00:00
Puppetfile_extras Adds etcd 2017-01-18 23:58:11 -05:00
Rakefile Switch puppet-tripleo to use puppet-openstack_spec_helper 2016-09-22 21:26:23 -04:00
README.md Show team and repo badges on README 2016-11-25 17:16:13 +01:00
setup.cfg Add basic structure for ReNo 2016-12-03 13:16:33 +00:00
setup.py Add basic structure for ReNo 2016-12-03 13:16:33 +00:00
test-requirements.txt Add basic structure for ReNo 2016-12-03 13:16:33 +00:00
tox.ini Add basic structure for ReNo 2016-12-03 13:16:33 +00:00

Team and repository tags

Team and repository tags

puppet-tripleo

Lightweight composition layer for Puppet TripleO.