diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-04-11 18:45:51 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-04-11 18:45:51 -0300 |
commit | deddeb6c9333caeaa09fc7ee3e24fb268faa79d5 (patch) | |
tree | c6a94330bde53e6b73603b6a7e3b6307f1064f21 /manifests | |
parent | d0499250019785e683b90c09196e7c74e6aa19e2 (diff) | |
download | puppet-ikiwiki-deddeb6c9333caeaa09fc7ee3e24fb268faa79d5.tar.gz puppet-ikiwiki-deddeb6c9333caeaa09fc7ee3e24fb268faa79d5.tar.bz2 |
Another major rewrite
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/instance.pp | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/manifests/instance.pp b/manifests/instance.pp index 8b4e13f..5dee2fd 100644 --- a/manifests/instance.pp +++ b/manifests/instance.pp @@ -10,7 +10,8 @@ define ikiwiki::instance( $protocol = 'https', $owner = $name, $group = $name, - $home = "/home/$owner" + $home = "/home/$owner", + $create_ssh_key = false ) { $desc = $description ? { @@ -67,20 +68,22 @@ define ikiwiki::instance( } } - if !defined(File["${home}/.ssh"]) { - file { "${home}/.ssh": - ensure => directory, - owner => $owner, - group => $group, - mode => 0700, + if $create_ssh_key == true { + if !defined(File["${home}/.ssh"]) { + file { "${home}/.ssh": + ensure => directory, + owner => $owner, + group => $group, + mode => 0700, + } } - } - if !defined(File["${ikiwiki::sites_folder}/${name}"]) { - file { "${ikiwiki::sites_folder}/${name}": - ensure => directory, - owner => root, - group => root, + if !defined(File["${ikiwiki::sites_folder}/${name}"]) { + file { "${ikiwiki::sites_folder}/${name}": + ensure => directory, + owner => root, + group => root, + } } } |