Browse Source

Make repo setup code Debian specific

Ensure that repo setup code is only performed
when the osfamily is debian.
tags/0.1.0
Dan Bode 7 years ago
parent
commit
52cbb6f59b
1 changed files with 10 additions and 9 deletions
  1. 10
    9
      examples/single.pp

+ 10
- 9
examples/single.pp View File

@@ -3,15 +3,16 @@
3 3
 # to ensure that we use the latest precise packages
4 4
 Exec { logoutput => 'on_failure' }
5 5
 
6
-stage { 'glance_ppa':
7
-  before => Stage['main'],
8
-}
9
-
10
-class { 'apt':
11
-  stage => 'glance_ppa',
12
-}
13
-class { 'keystone::repo::trunk':
14
-  stage => 'glance_ppa',
6
+if($::osfamily == 'Debian') {
7
+  stage { 'glance_ppa':
8
+    before => Stage['main'],
9
+  }
10
+  class { 'apt':
11
+    stage => 'glance_ppa',
12
+  }
13
+  class { 'keystone::repo::trunk':
14
+    stage => 'glance_ppa',
15
+  }
15 16
 }
16 17
 
17 18
 node glance {

Loading…
Cancel
Save