diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-16 15:16:01 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-16 15:16:01 -0300 |
commit | d605d02a6b39704436e387077df2226c5149b31c (patch) | |
tree | 150cad57a8968499d67da572c1895cabf450ae6c | |
parent | c92cdc9d3a81ca6809a39f26c23053db6b5a4ebe (diff) | |
download | puppet-ikiwiki-d605d02a6b39704436e387077df2226c5149b31c.tar.gz puppet-ikiwiki-d605d02a6b39704436e387077df2226c5149b31c.tar.bz2 |
Can manage ssh key for each instance
-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", + } + } } } |