diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/site.pp | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/manifests/site.pp b/manifests/site.pp index 89eef6d..e64145c 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -53,6 +53,16 @@ node 'hornquist.se' { 'cowsay', ], { ensure => installed }) + nsupdate { 'hornquist.se': + ensure => present, + nameserver => 'ns2.adrift.space', + iface => 'eth0', + records => [ + { type => 'A', ttl => 3600, domain => 'hornquist.se' }, + { type => 'A', ttl => 3600, domain => '*.hornquist.se' }, + ], + } + $cgit_root = '/var/www/cgit' $blog_root = '/var/www/blog' @@ -108,16 +118,23 @@ node 'hornquist.se' { $certname = 'hornquist' - class { 'letsencrypt': + class { '::letsencrypt': + config => { email => 'hugo.hornquist@gmail.com', - renew_cron_ensure => present, + } + # renew_cron_ensure => present, } ensure_packages(['python3-certbot-nginx'], { ensure => installed }) letsencrypt::certonly { $certname: - domains => [ + ensure => present, + manage_cron => true, + plugin => 'nginx', + additional_args => [ '--quiet', ], + post_hook_commands => [ 'systemctl reload nginx.service', ], + domains => [ 'blog.hornquist.se', 'blogg.hornquist.se', 'www.hornquist.se', @@ -125,7 +142,6 @@ node 'hornquist.se' { 'git.hornquist.se', 'wiki.hornquist.se', ], - plugin => 'nginx', } nginx::resource::server { 'blogg': |