summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2019-03-10 10:16:54 +0000
committerintrigeri <intrigeri@boum.org>2019-03-10 10:16:54 +0000
commit1bb84dbf9bf9d3de6fd42c137e805ef683a012fd (patch)
tree67765a3ba12dd03a52b0cff3e4fdef9f1e04a728
parentddfc3359454418b4bc31e89e92604af3aaf0dd01 (diff)
Website: refresh ikiwiki wrappers when ikiwiki.setup.erb is updated (refs: #16542).
-rw-r--r--manifests/website.pp12
1 files changed, 12 insertions, 0 deletions
diff --git a/manifests/website.pp b/manifests/website.pp
index c73761f..0d2921d 100644
--- a/manifests/website.pp
+++ b/manifests/website.pp
@@ -111,6 +111,18 @@ class tails::website (
group => $user,
mode => '0640',
content => template('tails/website/ikiwiki.setup.erb'),
+ notify => Exec['update ikiwiki wrappers'],
+ }
+
+ exec { 'update ikiwiki wrappers':
+ command => "ikiwiki --setup '${config_dir}/ikiwiki.setup' --refresh --wrappers",
+ user => $user,
+ refreshonly => true,
+ require => [
+ Class['::tails::website::builder'],
+ File[$web_dir],
+ Vcsrepo["${git_dir}/tails"],
+ ],
}
tails::website::webserver::instance { $public_hostname: