bundles/nginx: add nginx config
This commit is contained in:
parent
411d22d404
commit
ffb962b108
4 changed files with 76 additions and 1 deletions
23
bundles/nginx/items.py
Normal file
23
bundles/nginx/items.py
Normal 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',
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue