aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/instance.pp11
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/instance.pp b/manifests/instance.pp
index d797f2e..ba0db0d 100644
--- a/manifests/instance.pp
+++ b/manifests/instance.pp
@@ -30,6 +30,7 @@ define ikiwiki::instance($base_url = $domain, $ensure = 'present', $description
creates => "${ikiwiki::sites_folder}/${name}/.ssh/id_rsa",
user => $owner,
group => $group,
+ require => File["${ikiwiki::sites_folder}/${name}/.ssh"],
}
if !defined(File["${ikiwiki::sites_folder}/${name}/${instance}_src"]) {
@@ -53,6 +54,16 @@ define ikiwiki::instance($base_url = $domain, $ensure = 'present', $description
}
}
+ if !defined(File["${ikiwiki::sites_folder}/${name}/.ssh"]) {
+ file { "${ikiwiki::sites_folder}/${name}/.ssh":
+ ensure => directory,
+ owner => $owner,
+ group => $group,
+ mode => 0700,
+ require => File["${ikiwiki::sites_folder}/${name}"],
+ }
+ }
+
if !defined(File["${ikiwiki::sites_folder}/${name}"]) {
file { "${ikiwiki::sites_folder}/${name}":
ensure => directory,