tlu/salt/states/dnsmasq/init.sls
Jonas Forsberg b196972b96 .
2021-10-14 15:16:11 +02:00

20 lines
371 B
Plaintext

Install dnsmasq:
pkg.installed:
- name: dnsmasq
configure dnsmasq:
file.managed:
- name: /etc/dnsmasq.d/tlu.conf
- source: salt://dnsmasq/files/tlu.conf.jinja
- template: jinja
- user: root
- group: root
- mode: "0644"
Start dnsmasq:
service.running:
- name: dnsmasq
- enable: True
- watch:
- file: configure dnsmasq