Browse Source

Merge "Add cfacter to puppet3 nodes"

Jenkins 3 years ago
parent
commit
50e0cfc6fb
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      modules/openstack_project/manifests/template.pp

+ 8
- 0
modules/openstack_project/manifests/template.pp View File

@@ -279,10 +279,12 @@ class openstack_project::template (
279 279
     '2.7.': {
280 280
       $pin_facter = '1.'
281 281
       $pin_puppetdb = '1.'
282
+      $cfacter = false
282 283
     }
283 284
     /^3\./: {
284 285
       $pin_facter = '2.'
285 286
       $pin_puppetdb = '2.'
287
+      $cfacter = true
286 288
     }
287 289
     default: {
288 290
       fail("Puppet version not supported")
@@ -305,6 +307,12 @@ class openstack_project::template (
305 307
 
306 308
   }
307 309
 
310
+  if $cfacter {
311
+    package { 'cfacter':
312
+      ensure => latest,
313
+    }
314
+  }
315
+
308 316
   # Which Puppet do I take?
309 317
   # Take $puppet_version and pin to that version
310 318
   if ($::osfamily == 'Debian') {

Loading…
Cancel
Save