Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. class rsyslog {
  2.  
  3. service { 'rsyslog':
  4. ensure => running,
  5. enable => true,
  6. }
  7. file { 'rsyslog.conf':
  8. path => '/etc/rsyslog.conf',
  9. ensure => file,
  10. mode => 0644,
  11. source => 'puppet:///modules/rsyslog/rsyslog.conf',
  12. }
  13. File['rsyslog.conf'] ~> Service['rsyslog']
  14. file { 'graylog.conf':
  15. path => '/etc/rsyslog.d/graylog.conf',
  16. ensure => file,
  17. mode => 0644,
  18. source => 'puppet:///modules/rsyslog/graylog.conf',
  19. }
  20. File['graylog.conf'] ~> Service['rsyslog']
  21.  
  22. case $::libdistid {
  23. 'OracleVMServer': {
  24. file { 'ovs.conf':
  25. path => '/etc/rsyslog.d/ovs.conf',
  26. ensure => file,
  27. mode => 0644,
  28. source => 'puppet:///modules/rsyslog/ovs.conf',
  29. }
  30. File['ovs.conf'] ~> Service['rsyslog']
  31. }
  32. default: {
  33. message => 'Not an Oracle VM server',
  34. }
  35. }
  36.  
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement