summaryrefslogtreecommitdiff
path: root/puppet/modules/obfsproxy/manifests/init.pp
diff options
context:
space:
mode:
authorirregulator <irregulator@riseup.net>2014-05-24 18:08:31 +0300
committerelijah <elijah@riseup.net>2014-07-01 16:05:41 -0700
commit58347eddee416410e3ad3c8c4edc2b0e40a3d26c (patch)
treec0ab282b13884fdaf7a5f6bc60f0d63e799c0707 /puppet/modules/obfsproxy/manifests/init.pp
parent4ad025d9d7b0c1999bf34e0acd3ca12c88358d05 (diff)
Subscribe obfsproxy service resource to conf file
Diffstat (limited to 'puppet/modules/obfsproxy/manifests/init.pp')
-rw-r--r--puppet/modules/obfsproxy/manifests/init.pp6
1 files changed, 3 insertions, 3 deletions
diff --git a/puppet/modules/obfsproxy/manifests/init.pp b/puppet/modules/obfsproxy/manifests/init.pp
index b45a60a1..4a0221af 100644
--- a/puppet/modules/obfsproxy/manifests/init.pp
+++ b/puppet/modules/obfsproxy/manifests/init.pp
@@ -39,7 +39,6 @@ class obfsproxy (
group => 'root',
mode => '0600',
content => template('obfsproxy/etc_conf.erb'),
- require => File['/etc/obfsproxy'],
}
file { '/etc/obfsproxy':
@@ -70,8 +69,9 @@ class obfsproxy (
}
service { 'obfsproxy':
- ensure => running,
- require => [
+ ensure => running,
+ subscribe => File[$conf],
+ require => [
Package['obfsproxy'],
File['/etc/init.d/obfsproxy'] ]
}