From 280cb7c481fd3c70b5c54c31c64ae05e187bc0ac Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 11 Apr 2013 21:28:50 -0300 Subject: Cleanup, README update and dependency fixes --- README | 5 +++++ manifests/instance.pp | 18 ++++++------------ 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/README b/README index 35e713c..ff70403 100644 --- a/README +++ b/README @@ -46,3 +46,8 @@ Usage example disable_plugins => "openid", add_plugins => "goodstuff sidebar", } + +References +---------- + +- See http://rtime.felk.cvut.cz/~sojka/blog/using-ikiwiki-with-gitolite/ diff --git a/manifests/instance.pp b/manifests/instance.pp index bd46af7..f845f68 100644 --- a/manifests/instance.pp +++ b/manifests/instance.pp @@ -13,7 +13,6 @@ define ikiwiki::instance( $home = "/home/$owner", $create_ssh_key = false ) { - case $ensure { 'present': { file { "/etc/ikiwiki/$name.setup": @@ -69,14 +68,6 @@ define ikiwiki::instance( } } - if !defined(File["${ikiwiki::sites_folder}/${name}"]) { - file { "${ikiwiki::sites_folder}/${name}": - ensure => directory, - owner => root, - group => root, - } - } - exec { "ssh-keygen-ikiwiki-${owner}": command => "ssh-keygen -t rsa -P '' -f ${home}/.ssh/id_rsa", creates => "${home}/.ssh/id_rsa", @@ -86,13 +77,14 @@ define ikiwiki::instance( } } - # See http://rtime.felk.cvut.cz/~sojka/blog/using-ikiwiki-with-gitolite/ file { "${ikiwiki::git_folder}/${name}.git/hooks/post-update": ensure => present, owner => $owner, group => $ikiwiki::git_implementation, mode => 6550, - require => File["/etc/ikiwiki/$name.setup"], + require => File["/etc/ikiwiki/$name.setup" + "${ikiwiki::sites_folder}/${name}/ikiwiki", + "${ikiwiki::sites_folder}/${name}/ikiwiki_src"], } file { "${ikiwiki::sites_folder}/${name}/ikiwiki/ikiwiki.cgi": @@ -100,7 +92,9 @@ define ikiwiki::instance( owner => $owner, group => $ikiwiki::www_user, mode => 6550, - require => File["/etc/ikiwiki/$name.setup"], + require => File["/etc/ikiwiki/$name.setup" + "${ikiwiki::sites_folder}/${name}/ikiwiki", + "${ikiwiki::sites_folder}/${name}/ikiwiki_src"], } } 'absent': { -- cgit v1.2.3