diff --git a/manifests/init.pp b/manifests/init.pp index 9ae03fb..667fe83 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -13,11 +13,13 @@ class statusbot( $twitter_secret = undef, $twitter_token_key = undef, $twitter_token_secret = undef, - $channels = [], - $irclogs_url = undef, - $wiki_successpageid = undef, - $wiki_thankspageid = undef, - $twitter = undef, + $channels = [], + $irclogs_url = undef, + $wiki_successpageid = undef, + $wiki_successpageurl = undef, + $wiki_thankspageid = undef, + $wiki_thankspageurl = undef, + $twitter = undef, ) { user { 'statusbot': diff --git a/templates/statusbot.config.erb b/templates/statusbot.config.erb index b2296ac..4fff0a8 100644 --- a/templates/statusbot.config.erb +++ b/templates/statusbot.config.erb @@ -24,9 +24,16 @@ pageid=<%= @wiki_pageid %> <% if @wiki_successpageid %> successpageid=<%= @wiki_successpageid %> <% end -%> +<% if @wiki_successpageurl %> +successpageurl=<%= @wiki_successpageurl %> +<% end -%> <% if @wiki_thankspageid %> thankspageid=<%= @wiki_thankspageid %> <% end -%> +<% if @wiki_thankspageurl %> +thankspageurl=<%= @wiki_thankspageurl %> +<% end -%> + <% if @irclogs_url %>