Hello! We are running our annual fundraising. Please consider making a donation if you value this freely available service or want to support people around the world working towards liberatory social change. https://riseup.net/donate.

Commit d45665c4 authored by drebs's avatar drebs
Browse files

Create Nginx systemd directory in the Nginx profile

parent e6b92041
......@@ -12,12 +12,6 @@ class profile::monitoring::server::web (
include profile::letsencrypt
include profile::firewall::web
file { '/etc/systemd/system/nginx.service.d':
ensure => directory,
owner => 'root',
group => 'root',
}
profile::website { $domain_name:
ssl => $tls,
ssl_cert => "/var/local/tls/${domain_name}/fullchain.pem",
......
......@@ -10,6 +10,12 @@ class profile::nginx {
refreshonly => true,
}
file { '/etc/systemd/system/nginx.service.d':
ensure => directory,
owner => 'root',
group => 'root',
}
# The nginx Puppet module uses /run/nginx by default as a runtime directory,
# but that directory is not created by the Systemd Unit file included in the
# Debian package. See: https://github.com/voxpupuli/puppet-nginx/issues/1372
......@@ -19,6 +25,7 @@ class profile::nginx {
group => 0,
mode => '0644',
content => "[Service]\nRuntimeDirectory=nginx\n",
require => File['/etc/systemd/system/nginx.service.d'],
notify => [
Exec['profile::nginx systemctl daemon-reload'],
Service['nginx'],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment