centos.pp 796 B

1234567891011121314151617181920212223242526272829
  1. # manage centos specific things
  2. class tinc::centos inherits tinc::base {
  3. if $tinc::uses_systemd {
  4. # systemd manages per instance
  5. Service['tinc'] {
  6. ensure => undef,
  7. enable => false,
  8. }
  9. Concat['/etc/tinc/nets.boot']{
  10. ensure => 'absent',
  11. }
  12. } else {
  13. file {
  14. '/etc/sysconfig/tinc' :
  15. source => [ "puppet:///modules/site_tinc/CentOS/${::fqdn}/tinc.sysconfig",
  16. 'puppet:///modules/site_tinc/tinc.sysconfig',
  17. "puppet:///modules/tinc/${::operatingsystem}/tinc.sysconfig"],
  18. require => Package['tinc'],
  19. notify => Service['tinc'],
  20. owner => root,
  21. group => 0,
  22. mode => '0644';
  23. }
  24. Service['tinc'] {
  25. hasstatus => true,
  26. hasrestart => true
  27. }
  28. }
  29. }