Skip to content

Instantly share code, notes, and snippets.

@tfheen
Created April 6, 2015 17:38
Show Gist options
  • Save tfheen/780d358ba60d622b0938 to your computer and use it in GitHub Desktop.
Save tfheen/780d358ba60d622b0938 to your computer and use it in GitHub Desktop.
diff --git a/modules/stunnel4/manifests/init.pp b/modules/stunnel4/manifests/init.pp
index 6d5c4e4..f1adc42 100644
--- a/modules/stunnel4/manifests/init.pp
+++ b/modules/stunnel4/manifests/init.pp
@@ -8,10 +8,17 @@ class stunnel4 {
ensure => directory,
mode => '0755',
}
- file { '/etc/init.d/stunnel4':
- source => 'puppet:///modules/stunnel4/etc-init.d-stunnel4',
- mode => '0555',
- }
+ if $systemd {
+ file { '/etc/init.d/stunnel4':
+ source => 'puppet:///modules/stunnel4/etc-init.d-stunnel4',
+ mode => '0555',
+ notify => Exec['systemctl daemon-reload'],
+ }
+ } else {
+ file { '/etc/init.d/stunnel4':
+ source => 'puppet:///modules/stunnel4/etc-init.d-stunnel4',
+ mode => '0555',
+ }
file { '/etc/stunnel/stunnel.conf':
ensure => absent,
require => Package['stunnel4'],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment