Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. class mon {
  2.  
  3. package { 'munin-node': ensure => installed }
  4.  
  5. exec { 'update munin-node.conf':
  6. require => Package['munin-node'],
  7. command => "sed -i '/allow ^127/ c\allow ^205\\\.186\\\.154\\\.24$' /etc/munin/munin-node.conf && touch /etc/munin/.allowip.done",
  8. creates => '/etc/munin/.allowip.done',
  9. notify => Service['munin-node'],
  10. }
  11.  
  12. service { 'munin-node':
  13. ensure => running,
  14. require => Package['munin-node'],
  15. }
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement