Changeset 189
- Timestamp:
- May 17, 2009, 5:45:11 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/puppet/manifests/classes/smokeping.pp
r176 r189 1 1 # Example: 2 # smokeping:: activateclient { <host>:2 # smokeping::monitorhost { <host>: 3 3 # place => "local", 4 4 # host => "host" 5 5 # } 6 6 7 define smokeping::activateclient ( $place, $host ) { 7 define smokeping::monitorhost ( $place, $host ) { 8 9 ## pas possible pour le moment parce que ce fichier se duplique... 10 # file { "/etc/smokeping/config.d/Targets-$place": 11 # ensure => "present", 12 # content => "+ $place\nmenu = $place\ntitle = $host\n", 13 # require => Package["smokeping"] 14 # } 8 15 9 16 file { "/etc/smokeping/config.d/Targets-$place-$host": … … 14 21 15 22 line { $host : 16 file => "/etc/smokeping/config .d/Targets",23 file => "/etc/smokeping/config", 17 24 line => "@include /etc/smokeping/config.d/Targets-$place-$host", 18 25 ensure => present,
Note: See TracChangeset
for help on using the changeset viewer.