Make repo setup code Debian specific

Ensure that repo setup code is only performed
when the osfamily is debian.
This commit is contained in:
Dan Bode 2012-04-11 17:20:17 -07:00
parent ffec6ab6b4
commit 52cbb6f59b
1 changed files with 10 additions and 9 deletions

View File

@ -3,15 +3,16 @@
# to ensure that we use the latest precise packages
Exec { logoutput => 'on_failure' }
stage { 'glance_ppa':
before => Stage['main'],
}
class { 'apt':
stage => 'glance_ppa',
}
class { 'keystone::repo::trunk':
stage => 'glance_ppa',
if($::osfamily == 'Debian') {
stage { 'glance_ppa':
before => Stage['main'],
}
class { 'apt':
stage => 'glance_ppa',
}
class { 'keystone::repo::trunk':
stage => 'glance_ppa',
}
}
node glance {