# Based on https://wiki.koumbit.net/QwebIrc
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') {
+ $sslport = false, $feedback_from = 'moo@moo.com', $feedback_to = 'moo@moo.com',
+ $sslfingerprint = false) {
package { [ 'python-twisted', 'python-openssl', 'python-simplejson', 'mercurial' ]:
ensure => present,
vcsrepo { "/var/lib/qwebirc":
ensure => present,
provider => hg,
- source => 'https://bitbucket.org/qwebirc/qwebirc',
- revision => '48dfc2ca0def',
+ source => 'https://bitbucket.org/rhatto/qwebirc',
+ revision => 'cbc58859a6e1',
owner => 'qwebirc',
group => 'qwebirc',
require => [ User['qwebirc'], Group['qwebirc'], Package['mercurial'] ],
# If this option is uncommented it will override IRCPORT.
SSLPORT = <%= sslport %>
<% end %>
+
+<% if sslfingerprint != false %>
+# OPTION: SSLFINGERPRINT
+# SHA1 Fingerprint of the IRC Server SSL key. Connections
+# will fail if this fingerprint doesn't match.
+SSLFINGERPRINT = <%= sslfingerprint %>
+<% end %>
# OPTION: REALNAME
# The realname field of IRC clients will be set to this value.
REALNAME = "<%= realname %>"