Skip to content

Commit 07484c3

Browse files
committed
use stdlib's ensure_resource so the conf directory could be created in another module (prevents dependency cycle)
create directory with the correct mod
1 parent d8ae988 commit 07484c3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

manifests/domain.pp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,15 @@
159159
validate_string($domain_account_mail)
160160
}
161161

162-
file { "${base_dir}/conf/${domain}":
162+
$parent_dir = {
163163
ensure => directory,
164164
owner => root,
165165
group => root,
166-
mode => '0644',
166+
mode => '0755',
167167
}
168168

169+
ensure_resource('file', "${base_dir}/conf/${domain}", $parent_dir)
170+
169171
if $suppress_getssl_run {
170172
# Don't run getssl immediately
171173
$config_notifiers = []

0 commit comments

Comments
 (0)