diff options
-rw-r--r-- | manifests/instance.pp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/manifests/instance.pp b/manifests/instance.pp index c38084f..653bd55 100644 --- a/manifests/instance.pp +++ b/manifests/instance.pp @@ -12,6 +12,7 @@ define ikiwiki::instance( $group = $name, $cgi = '1', $discussion = '1', + $manage_ssh_key = false, ) { case $ensure { 'present': { @@ -83,5 +84,14 @@ define ikiwiki::instance( ensure => absent, } } + + if ($manage_ssh_key == true) { + ssh_local_key { "ikiwiki-${name}": + ensure => $ensure, + owner => $owner, + group => $owner, + $source = "puppet:///modules/site_keys/ikiwiki/${name}_id_rsa", + } + } } } |