1 # == Class: opendaylight
3 # OpenDaylight SDN Controller
8 # Explanation of what this parameter affects and what it defaults to.
11 $package_name = $::opendaylight::params::package_name,
12 $service_name = $::opendaylight::params::service_name,
13 ) inherits ::opendaylight::params {
16 case $::operatingsystem {
18 if $::operatingsystemmajrelease != 7 {
19 # RHEL/CentOS versions < 7 not supported as they lack systemd
20 fail("Unsupported OS: ${::operatingsystem} ${::operatingsystemmajrelease}")
24 # Fedora distros < 20 are EOL as of Jan 6th 2015
25 if ! ($::operatingsystemmajrelease in [20, 21]) {
26 # Fedora versions < 19 can't be build on Copr, >21 don't exist
27 fail("Unsupported OS: ${::operatingsystem} ${::operatingsystemmajrelease}")
31 fail("Unsupported OS: ${::operatingsystem}")
35 class { '::opendaylight::install': } ->
36 class { '::opendaylight::config': } ~>
37 class { '::opendaylight::service': } ->
38 Class['::opendaylight']