From 2b4e5bed7c9d85c0f65733be6ef6dc799a8d1261 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 9 May 2013 14:06:23 -0300 Subject: Adding webirc_password --- manifests/init.pp | 2 +- templates/config.py.erb | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 31c099e..4431751 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -2,7 +2,7 @@ class qwebirc($ircserver = 'irc.myserver.com', $ircport = '6667', $realname = 'http://moo.com/', $webirc_mode = 'None', $base_url = 'http://foo.foo.org/', $network_name = 'FooNet', $sslport = false, $feedback_from = 'moo@moo.com', $feedback_to = 'moo@moo.com', - $sslfingerprint = false) { + $sslfingerprint = false, $webirc_password = false) { package { [ 'python-twisted', 'python-openssl', 'python-simplejson', 'mercurial' ]: ensure => present, diff --git a/templates/config.py.erb b/templates/config.py.erb index b2dd998..0feb9f2 100644 --- a/templates/config.py.erb +++ b/templates/config.py.erb @@ -85,7 +85,9 @@ WEBIRC_MODE = <%= webirc_mode %> # OPTION: WEBIRC_PASSWORD # Used for WEBIRC_MODE webirc and cgiirc, see WEBIRC_MODE # option documentation. -#WEBIRC_PASSWORD = "fish" +<%- if webirc_password != false -%> +WEBIRC_PASSWORD = "<%= webirc_password -%>" +<%- end %> # OPTION: CGIIRC_STRING # Command sent to IRC server in for cgiirc WEBIRC_MODE. -- cgit v1.2.3