Skip to content
Snippets Groups Projects
Commit 240680f6 authored by Hugo Hörnquist's avatar Hugo Hörnquist
Browse files

Document letsencrypt dns challenge.

parent 219898ec
No related branches found
No related tags found
No related merge requests found
...@@ -47,6 +47,7 @@ class irc_bouncer::setup { ...@@ -47,6 +47,7 @@ class irc_bouncer::setup {
ensure => directory, ensure => directory,
owner => 'znc', owner => 'znc',
} }
# vcsrepo { '/var/lib/znc/znc-lysator': # vcsrepo { '/var/lib/znc/znc-lysator':
# ensure => latest, # ensure => latest,
# provider => git, # provider => git,
...@@ -76,6 +77,15 @@ class irc_bouncer::setup { ...@@ -76,6 +77,15 @@ class irc_bouncer::setup {
args => ['saslauthd'], args => ['saslauthd'],
} }
# Letsencrypt challenge is done through DNS since the ZNC webserver
# is to inflexible, and I neither want to front it just for certs,
# and I don't want to stop ZNC just for updating certs.
# https://certbot-dns-rfc2136.readthedocs.io/en/stable/
# Secret is manually generated on the nameserver, and placed in the
# appropriate dns config file.
# $ tsig-keygen -a hmac-sha256 verdigris.lysator.liu.se
class { '::letsencrypt': class { '::letsencrypt':
config => { config => {
...@@ -107,13 +117,6 @@ class irc_bouncer::setup { ...@@ -107,13 +117,6 @@ class irc_bouncer::setup {
mode => '0755', mode => '0755',
} }
# exec { 'znc make pem':
# command => 'znc --datadir=/var/lib/znc --makepem',
# path => '/usr/bin:/bin',
# user => 'znc',
# onlyif => 'test ! -f /var/lib/znc/znc.pem',
# }
file { '/var/lib/znc/moddata/cyrusauth/.registry': file { '/var/lib/znc/moddata/cyrusauth/.registry':
ensure => file, ensure => file,
content => "CreateUser true\n", content => "CreateUser true\n",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment