tlu/salt/states/nginx/init.sls

18 lines
325 B
Plaintext
Raw Permalink Normal View History

2021-09-24 11:25:12 +00:00
Install nginx:
pkg.installed:
- name: nginx
2021-10-22 14:19:31 +00:00
configure www configuration:
file.managed:
- name: /etc/nginx/vhosts.d/www.conf
- source: salt://nginx/files/www.conf
- template: jinja
- user: root
- group: root
- mode: "0644"
2021-09-24 11:25:12 +00:00
Start nginx:
service.running:
- name: nginx
enable: True