Minor bugfix in path to Karaf features file
[integration/packaging/puppet-opendaylight.git] / manifests / install.pp
1 # == Class opendaylight::install
2 #
3 # This class is called from opendaylight for install.
4 #
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/',
9   }
10
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
16     baseurl  => $base_url,
17     descr    => 'OpenDaylight SDN controller',
18     gpgcheck => 0,
19     enabled  => 1,
20     before   => Package['opendaylight'],
21   }
22
23   package { $::opendaylight::package_name:
24     ensure  => present,
25     require => Yumrepo['opendaylight'],
26   }
27 }