- Fix ODL listening on default port when alternate port specified
2018-03-05 Release 8.1.0
- Configure Java Options via karaf instead of Systemd
+2018-04-24 Release 8.1.1
+- Fix Java Options to also include ODL/Karaf default options
##### `java_opts`
-Specifies the Java options to run ODL with as a string.
+Specifies the Java options to run ODL with as a string. Note, these options
+are in addition to the default Java options set by the karaf/ODL boot scripts.
Default: `'-Djava.net.preferIPv4Stack=true'`
file_line {'Karaf Java Options':
ensure => present,
path => '/opt/opendaylight/bin/karaf',
- line => "JAVA_OPTS=${opendaylight::java_opts}",
- match => '^JAVA_OPTS=.*$',
+ line => "EXTRA_JAVA_OPTS=${opendaylight::java_opts}",
+ match => '^EXTRA_JAVA_OPTS=.*$',
after => '^PROGNAME=.*$'
}
{
"name": "opendaylight-opendaylight",
- "version": "8.1.0",
+ "version": "8.1.1",
"author": "Daniel Farrell",
"summary": "Puppet module that installs and configures the OpenDaylight SDN controller",
"license": "BSD-2-Clause",
should contain_file_line('Karaf Java Options').with(
'ensure' => 'present',
'path' => '/opt/opendaylight/bin/karaf',
- 'line' => "JAVA_OPTS=#{java_opts}",
- 'match' => '^JAVA_OPTS=.*$',
+ 'line' => "EXTRA_JAVA_OPTS=#{java_opts}",
+ 'match' => '^EXTRA_JAVA_OPTS=.*$',
'after' => '^PROGNAME=.*$'
)
}
it { should be_file }
it { should be_owned_by 'odl' }
it { should be_grouped_into 'odl' }
- its(:content) { should match /^JAVA_OPTS=#{java_opts}$/ }
+ its(:content) { should match /^EXTRA_JAVA_OPTS=#{java_opts}$/ }
end
# Should contain ODL NB port config file