summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Bode <dan@puppetlabs.com>2012-04-11 17:20:17 -0700
committerDan Bode <dan@puppetlabs.com>2012-04-11 17:20:17 -0700
commit52cbb6f59bb285984d0e0869f026f98bc1d71f70 (patch)
tree705a9ba16ad0236365e3af4057da78abcc46c707
parentffec6ab6b4d382e7a7f466f89fd3d55d50377975 (diff)
Make repo setup code Debian specific
Ensure that repo setup code is only performed when the osfamily is debian.
-rw-r--r--examples/single.pp19
1 files changed, 10 insertions, 9 deletions
diff --git a/examples/single.pp b/examples/single.pp
index 1cb91a3..4a19435 100644
--- a/examples/single.pp
+++ b/examples/single.pp
@@ -3,15 +3,16 @@
3# to ensure that we use the latest precise packages 3# to ensure that we use the latest precise packages
4Exec { logoutput => 'on_failure' } 4Exec { logoutput => 'on_failure' }
5 5
6stage { 'glance_ppa': 6if($::osfamily == 'Debian') {
7 before => Stage['main'], 7 stage { 'glance_ppa':
8} 8 before => Stage['main'],
9 9 }
10class { 'apt': 10 class { 'apt':
11 stage => 'glance_ppa', 11 stage => 'glance_ppa',
12} 12 }
13class { 'keystone::repo::trunk': 13 class { 'keystone::repo::trunk':
14 stage => 'glance_ppa', 14 stage => 'glance_ppa',
15 }
15} 16}
16 17
17node glance { 18node glance {