lgproxy.pp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # Module:: public::lookingglass
  2. # Manifest:: lgproxy.pp
  3. # Sources
  4. # git clone https://github.com/sileht/bird-lg -C /opt/
  5. class public::lookingglass::lgproxy {
  6. user { 'lgproxy':
  7. ensure => present,
  8. system => true,
  9. }
  10. file { '/etc/systemd/system/lgproxy.service':
  11. ensure => file,
  12. owner => root,
  13. group => staff,
  14. mode => '0755',
  15. source => 'puppet:///modules/public/lookingglass/lgproxy/lgproxy.service',
  16. notify => Service['lgproxy'],
  17. require => User['lgproxy'],
  18. }
  19. service { 'lgproxy':
  20. ensure => running,
  21. enable => true,
  22. require => File['/etc/systemd/system/lgproxy.service'],
  23. }
  24. file { '/opt/bird-lg/':
  25. ensure => directory,
  26. owner => root,
  27. group => staff,
  28. mode => '0755',
  29. }
  30. file { '/var/log/bird-lg/':
  31. ensure => directory,
  32. owner => 'lgproxy',
  33. group => staff,
  34. mode => '0755',
  35. }
  36. file { '/opt/bird-lg/lgproxy.cfg':
  37. ensure => file,
  38. owner => root,
  39. group => staff,
  40. mode => '0644',
  41. source => "puppet:///modules/private/lookingglass/lgproxy/lgproxy-${hostname}.cfg",
  42. notify => Service['lgproxy'],
  43. }
  44. file { '/opt/bird-lg/lgproxy.py':
  45. ensure => file,
  46. owner => root,
  47. group => staff,
  48. mode => '0755',
  49. notify => Service['lgproxy'],
  50. #require => [
  51. # Package['bird6'],
  52. # Package['bird'],
  53. #],
  54. }
  55. file { [ '/var/run/bird/bird6.ctl', '/var/run/bird/bird.ctl' ]:
  56. owner => 'root',
  57. group => 'lgproxy',
  58. #require => [
  59. # Package['bird6'],
  60. # Package['bird'],
  61. #],
  62. }
  63. }