Removed yumrepo ensure flag as it isn't supported with Puppet <3.5
[integration/packaging/puppet-opendaylight.git] / manifests / install.pp
index bd46669ca11d4dc4ea8c0dd371620eb161c58320..1b03f89f88d5b4fe0b22aef51699e6326ac6880b 100644 (file)
@@ -3,16 +3,17 @@
 # This class is called from opendaylight for install.
 #
 class opendaylight::install {
+
   yumrepo { 'opendaylight':
-    ensure   => present,
+    # 'ensure' isn't supported with Puppet <3.5
+    #ensure   => 'present',
     descr    => 'OpenDaylight SDN controller',
     baseurl  => 'http://104.131.189.230/repository/',
     gpgcheck => False,
     enabled  => True,
-    before   => Package['opendaylight'],
   }
 
-  package { 'opendaylight':
-    require => Yumrepo['opendaylight'],
+  package { $::opendaylight::package_name:
+    ensure => present,
   }
 }