aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-04-10 22:06:56 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-04-10 22:06:56 -0300
commit987b7013b24a46f4785e01d97b5bce1ef0911890 (patch)
tree5f607c9e2d18c702906b49971d584bd60f365e67 /manifests
parent2611af21293012661503bc958efbfac2bdb2a644 (diff)
downloadpuppet-ikiwiki-987b7013b24a46f4785e01d97b5bce1ef0911890.tar.gz
puppet-ikiwiki-987b7013b24a46f4785e01d97b5bce1ef0911890.tar.bz2
Source local key only if present
Diffstat (limited to 'manifests')
-rw-r--r--manifests/instance.pp5
1 files changed, 4 insertions, 1 deletions
diff --git a/manifests/instance.pp b/manifests/instance.pp
index 717cf90..c48634d 100644
--- a/manifests/instance.pp
+++ b/manifests/instance.pp
@@ -94,7 +94,10 @@ define ikiwiki::instance(
owner => $owner,
group => $group,
home => $home,
- source => "puppet:///ssh/ikiwiki/${name}_id_rsa",
+ source => $ensure ? {
+ 'present' => "puppet:///ssh/ikiwiki/${name}_id_rsa",
+ default => undef,
+ }
}
}
}