equal
deleted
inserted
replaced
|
1 # Class puppi::dependencies |
|
2 # |
|
3 # This class provides commands and tools needed for full Puppi |
|
4 # functionality. Since you might already have these package |
|
5 # resources in your modules, to avoid conflicts you may decide |
|
6 # to include the needed packages somewhere else and avoid the |
|
7 # direct inclusion of puppi::dependencies with the parameter: |
|
8 # install_dependencies => false |
|
9 # |
|
10 class puppi::dependencies { |
|
11 |
|
12 require puppi::params |
|
13 |
|
14 if ! defined(Package['curl']) { |
|
15 package { 'curl' : ensure => present } |
|
16 } |
|
17 |
|
18 if ! defined(Package['wget']) { |
|
19 package { 'wget' : ensure => present } |
|
20 } |
|
21 |
|
22 if ! defined(Package['unzip']) { |
|
23 package { 'unzip' : ensure => present } |
|
24 } |
|
25 |
|
26 if ! defined(Package['rsync']) { |
|
27 package { 'rsync' : ensure => present } |
|
28 } |
|
29 |
|
30 if ! defined(Package[$puppi::params::package_nagiosplugins]) { |
|
31 package { $puppi::params::package_nagiosplugins : ensure => present } |
|
32 } |
|
33 |
|
34 if ! defined(Package[$puppi::params::package_mail]) { |
|
35 package { $puppi::params::package_mail : ensure => present } |
|
36 } |
|
37 |
|
38 } |