Browse Source

Allow multiple places to install curl

Curl is an important package that we end up needing in a few places. To
avoid puppet unique name conflicts with the package "curl" only define
the curl package resource if it isn't already defined.

This allows us to define it in multiple places that may or may not
overlap depending on how hosts are constructed.

Change-Id: Icd0c652ff2f522ce2ea9086965f53e1a03f0d4fd
Clark Boylan 1 year ago
parent
commit
31e44bbcb0
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      manifests/init.pp

+ 4
- 2
manifests/init.pp View File

@@ -40,8 +40,10 @@ class ethercalc (
40 40
     mode   => '0664',
41 41
   }
42 42
 
43
-  package { 'curl':
44
-    ensure => present,
43
+  if !defined(Package['curl']) {
44
+    package { 'curl':
45
+      ensure => present,
46
+    }
45 47
   }
46 48
 
47 49
   anchor { 'nodejs-package-install': }

Loading…
Cancel
Save