Get the ordering right on files

This commit is contained in:
Nate Riffe 2014-11-19 09:41:00 -06:00
parent 2385cb27c4
commit 0a18dfa33f
2 changed files with 5 additions and 2 deletions

View File

@ -59,6 +59,8 @@ class tor (
group => $group, group => $group,
mode => '0600', mode => '0600',
source => $identity_key_source, source => $identity_key_source,
require => Package['tor'],
notify => Service['tor'],
} }
} }

View File

@ -20,8 +20,9 @@ define tor::service (
} }
file { "/var/lib/tor/${name}": file { "/var/lib/tor/${name}":
ensure => directory, ensure => directory,
mode => '2700', mode => '2700',
require => Package['tor'],
} }
if $private_key_source { if $private_key_source {