aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-09-01 13:32:35 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-09-01 13:32:35 -0300
commitd4124a37234f5f2736e594e0259907a9398cd442 (patch)
tree286f59f60a99b3259c1443579fac8fd586cf51be /manifests
parentfd2c4b68e715cd0542e1bbf76aeaf7442dec9184 (diff)
downloadpuppet-nodo-d4124a37234f5f2736e594e0259907a9398cd442.tar.gz
puppet-nodo-d4124a37234f5f2736e594e0259907a9398cd442.tar.bz2
Checking if wget is already defined
Diffstat (limited to 'manifests')
-rw-r--r--manifests/utils.pp9
1 files changed, 8 insertions, 1 deletions
diff --git a/manifests/utils.pp b/manifests/utils.pp
index 365674f..770d027 100644
--- a/manifests/utils.pp
+++ b/manifests/utils.pp
@@ -1,12 +1,19 @@
# Common utilities
class nodo::utils {
- package { [ 'screen', 'less', 'bzip2', 'openssl', 'lynx', 'wget', 'unzip',
+ package { [ 'screen', 'less', 'bzip2', 'openssl', 'lynx', 'unzip',
'nmap', 'telnet', 'tree', 'whois', 'dosfstools', 'dnsutils', 'secure-delete',
'bc', 'lsof', 'wipe', 'vrms', 'nsca-client', 'uuid-runtime', 'vim-nox',
'multitail', 'bash-completion', 'zsh' ]:
ensure => installed,
}
+ # Might be defined elsewhere
+ if !defined(Package['wget']) {
+ package { 'wget':
+ ensure => installed,
+ }
+ }
+
# Not using right now
package { [ 'logcheck', 'logcheck-database' ]:
ensure => absent,