From d4124a37234f5f2736e594e0259907a9398cd442 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 1 Sep 2014 13:32:35 -0300 Subject: Checking if wget is already defined --- manifests/utils.pp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'manifests/utils.pp') 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, -- cgit v1.2.3