1 # == Class opendaylight::install
3 # Manages the installation of OpenDaylight.
5 # There are two install methods: RPM-based and deb-based. The resulting
6 # system state should be functionally equivalent.
8 class opendaylight::install {
10 if $::opendaylight::manage_repositories {
11 require ::opendaylight::repos
14 package { 'opendaylight':
18 if $::osfamily == 'RedHat' {
19 # Configure the systemd file with Java options
20 file_line { 'java_options_systemd':
22 path => '/usr/lib/systemd/system/opendaylight.service',
23 line => "Environment=_JAVA_OPTIONS=\'${::opendaylight::java_opts}\'",
24 match => '^Environment.*',
25 after => 'ExecStart=/opt/opendaylight/bin/start',
26 require => Package['opendaylight'],
29 exec {'reload_systemd_units':
30 command => 'systemctl daemon-reload',