diff options
Diffstat (limited to 'manifests/utils.pp')
-rw-r--r-- | manifests/utils.pp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/manifests/utils.pp b/manifests/utils.pp new file mode 100644 index 0000000..9f499af --- /dev/null +++ b/manifests/utils.pp @@ -0,0 +1,36 @@ +# Common utilities +class nodo::utils { + package { [ 'screen', 'less', 'bzip2', 'openssl', 'lynx', 'wget', 'unzip', + 'nmap', 'telnet', 'tree', 'whois', 'dosfstools', 'dnsutils', 'logcheck-database', + 'bc', 'lsof', 'wipe', 'vrms', 'nsca-client', 'logcheck', 'vim-nox' ]: + ensure => installed, + } + + if !defined(Package['git-core']) { + package { 'git-core': + ensure => installed, + } + } + + # Editor alternative + file { "/etc/alternatives/editor": + ensure => "/usr/bin/vi", + owner => root, + group => root, + } + + # Ensure we have the minimum augeas version required by shorewall module + package { + 'libaugeas0': + ensure => $::lsbdistcodename ? { + 'squeeze' => '0.10.0-1~bpo60+3', + default => installed, + }; + 'augeas-tools': + ensure => $::lsbdistcodename ? { + 'squeeze' => '0.10.0-1~bpo60+3', + default => installed, + }, + require => Package['libaugeas0']; + } +} |