diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-04-10 22:06:56 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-04-10 22:06:56 -0300 |
commit | 987b7013b24a46f4785e01d97b5bce1ef0911890 (patch) | |
tree | 5f607c9e2d18c702906b49971d584bd60f365e67 /manifests | |
parent | 2611af21293012661503bc958efbfac2bdb2a644 (diff) | |
download | puppet-ikiwiki-987b7013b24a46f4785e01d97b5bce1ef0911890.tar.gz puppet-ikiwiki-987b7013b24a46f4785e01d97b5bce1ef0911890.tar.bz2 |
Source local key only if present
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/instance.pp | 5 |
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, + } } } } |