Browse Source

Add configuration for thanks/success page url

Avoiding these being hardcoded in openstack-infra/statusbot.

Depends-On: I06d637c00dccbee49ad8a60398ac21af4064034e
Change-Id: I0d36dbff893422e188b9e992f8e9bb3c1431419f
master
Mike Perez 1 year ago
parent
commit
3973ed99a2
2 changed files with 14 additions and 5 deletions
  1. 7
    5
      manifests/init.pp
  2. 7
    0
      templates/statusbot.config.erb

+ 7
- 5
manifests/init.pp View File

@@ -13,11 +13,13 @@ class statusbot(
13 13
   $twitter_secret = undef,
14 14
   $twitter_token_key = undef,
15 15
   $twitter_token_secret = undef,
16
-  $channels           = [],
17
-  $irclogs_url        = undef,
18
-  $wiki_successpageid = undef,
19
-  $wiki_thankspageid = undef,
20
-  $twitter            = undef,
16
+  $channels            = [],
17
+  $irclogs_url         = undef,
18
+  $wiki_successpageid  = undef,
19
+  $wiki_successpageurl = undef,
20
+  $wiki_thankspageid   = undef,
21
+  $wiki_thankspageurl  = undef,
22
+  $twitter             = undef,
21 23
 ) {
22 24
 
23 25
   user { 'statusbot':

+ 7
- 0
templates/statusbot.config.erb View File

@@ -24,9 +24,16 @@ pageid=<%= @wiki_pageid %>
24 24
 <% if @wiki_successpageid %>
25 25
 successpageid=<%= @wiki_successpageid %>
26 26
 <% end -%>
27
+<% if @wiki_successpageurl %>
28
+successpageurl=<%= @wiki_successpageurl %>
29
+<% end -%>
27 30
 <% if @wiki_thankspageid %>
28 31
 thankspageid=<%= @wiki_thankspageid %>
29 32
 <% end -%>
33
+<% if @wiki_thankspageurl %>
34
+thankspageurl=<%= @wiki_thankspageurl %>
35
+<% end -%>
36
+
30 37
 
31 38
 
32 39
 <% if @irclogs_url %>

Loading…
Cancel
Save