Pax config file was not being configured with the specified rest port.
Change-Id: I3c711d37335105de647724a0ac4138b8456a13d7
Signed-off-by: Tim Rozet <trozet@redhat.com>
- Update default REST API port to 8181
2018-01-30 Release 8.0.0
- Move to using log4j2
+2018-02-26 Release 8.0.1
+- Fix ODL listening on default port when alternate port specified
}
}
+ file_line { 'set pax bind port':
+ ensure => present,
+ path => '/opt/opendaylight/etc/org.ops4j.pax.web.cfg',
+ line => "org.osgi.service.http.port = ${opendaylight::odl_rest_port}",
+ require => File['org.ops4j.pax.web.cfg']
+ }
+
# Set any custom log levels
$opendaylight::log_levels.each |$log_name, $logging_level| {
$underscored_version = regsubst($log_name, '\.', '_', 'G')
{
"name": "opendaylight-opendaylight",
- "version": "8.0.0",
+ "version": "8.0.1",
"author": "Daniel Farrell",
"summary": "Puppet module that installs and configures the OpenDaylight SDN controller",
"license": "BSD-2-Clause",
should_not contain_augeas('ODL REST IP')
}
end
+
+ it {
+ should contain_file_line('set pax bind port').with(
+ 'ensure' => 'present',
+ 'path' => '/opt/opendaylight/etc/org.ops4j.pax.web.cfg',
+ 'line' => "org.osgi.service.http.port = #{odl_rest_port}",
+ 'require' => 'File[org.ops4j.pax.web.cfg]'
+ )
+ }
end
def log_level_tests(options = {})
it { should be_grouped_into 'odl' }
its(:content) { should match /Property name="jetty.port" default="#{odl_rest_port}"/ }
end
+
+ describe file('/opt/opendaylight/etc/org.ops4j.pax.web.cfg') do
+ it { should be_file }
+ it { should be_owned_by 'odl' }
+ it { should be_grouped_into 'odl' }
+ its(:content) { should match /org.osgi.service.http.port = #{odl_rest_port}/ }
+ end
end
# Shared function for validations related to custom logging verbosity