bundles/nginx: add nginx config

This commit is contained in:
Franzi 2020-04-13 09:52:26 +02:00
parent 411d22d404
commit ffb962b108
Signed by: kunsi
GPG key ID: 12E3D2136B818350
4 changed files with 76 additions and 1 deletions

23
bundles/nginx/items.py Normal file
View file

@ -0,0 +1,23 @@
files = {
'/etc/nginx/nginx.conf': {
'content_type': 'mako',
'context': node.metadata['nginx'],
'triggers': {
'svc_systemd:nginx:restart',
},
},
'/etc/nginx/sites/000-port80.conf': {
'source': 'port80.conf',
'triggers': {
'svc_systemd:nginx:restart',
},
},
}
svc_systemd = {
'nginx': {
'needs': {
'pkg_apt:nginx',
},
},
}