Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class mon {
- package { 'munin-node': ensure => installed }
- exec { 'update munin-node.conf':
- require => Package['munin-node'],
- command => "sed -i '/allow ^127/ c\allow ^205\\\.186\\\.154\\\.24$' /etc/munin/munin-node.conf && touch /etc/munin/.allowip.done",
- creates => '/etc/munin/.allowip.done',
- notify => Service['munin-node'],
- }
- service { 'munin-node':
- ensure => running,
- require => Package['munin-node'],
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement