From 987b7013b24a46f4785e01d97b5bce1ef0911890 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 10 Apr 2014 22:06:56 -0300 Subject: Source local key only if present --- manifests/instance.pp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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, + } } } } -- cgit v1.2.3