Merge "Reserve non-privileged ports for listeners"

This commit is contained in:
Jenkins 2016-03-29 08:15:18 +00:00 committed by Gerrit Code Review
commit ba45119acb
2 changed files with 10 additions and 0 deletions

View File

@ -91,6 +91,10 @@ sysctl::value{'net.ipv4.neigh.default.gc_thresh1': value => '256'}
sysctl::value{'net.ipv4.neigh.default.gc_thresh2': value => '1024'}
sysctl::value{'net.ipv4.neigh.default.gc_thresh3': value => '2048'}
class { '::openstack::reserved_ports':
ports => '35357,41055,61613',
}
service {'dhcrelay':
ensure => stopped,
}

View File

@ -43,6 +43,12 @@ describe manifest do
it { is_expected.to contain_sysctl__value(key).with(:value => value) }
end
it 'should reserve unprivleged ports for services' do
is_expected.to contain_class('openstack::reserved_ports').with(
:ports => '35357,41055,61613'
)
end
it { is_expected.to contain_class 'monit' }
it { is_expected.to contain_exec 'Change protocol and port in in issue' }