Re-added relationship between ODL pkg and repo
[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
7   yumrepo { 'opendaylight':
8     # 'ensure' isn't supported with Puppet <3.5
9     # hopfully it defaults to present, but docs don't say
10     # https://docs.puppetlabs.com/references/3.4.0/type.html#yumrepo
11     # https://docs.puppetlabs.com/references/3.5.0/type.html#yumrepo
12     #ensure   => 'present',
13     descr    => 'OpenDaylight SDN controller',
14     baseurl  => 'http://104.131.189.230/repository/',
15     gpgcheck => 0,
16     enabled  => 1,
17     before   => Package['opendaylight'],
18   }
19
20   package { $::opendaylight::package_name:
21     ensure => present,
22     require => Yumrepo['opendaylight'],
23
24   }
25 }