1 # == Class opendaylight::install
3 # This class is called from opendaylight for install.
5 class opendaylight::install {
6 $base_url = $::operatingsystem ? {
7 'CentOS' => 'https://copr-be.cloud.fedoraproject.org/results/dfarrell07/OpenDaylight/epel-7-$basearch/',
8 'Fedora' => 'https://copr-be.cloud.fedoraproject.org/results/dfarrell07/OpenDaylight/fedora-$releasever-$basearch/',
11 yumrepo { 'opendaylight':
12 # 'ensure' isn't supported with Puppet <3.5
13 # Seems to default to present, but docs don't say
14 # https://docs.puppetlabs.com/references/3.4.0/type.html#yumrepo
15 # https://docs.puppetlabs.com/references/3.5.0/type.html#yumrepo
17 descr => 'OpenDaylight SDN controller',
20 before => Package['opendaylight'],
23 package { $::opendaylight::package_name:
25 require => Yumrepo['opendaylight'],