Created
April 6, 2015 17:38
-
-
Save tfheen/780d358ba60d622b0938 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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