This repository has been archived on 2023-06-27. You can view files and clone it, but cannot push or open issues or pull requests.
salt-states_old/dnsmasq/init.sls
2020-12-23 13:17:51 +01:00

29 lines
550 B
Plaintext

Install dnsmasq:
pkg.installed:
- name: dnsmasq
rre.nu configuration file:
file.managed:
- name: /etc/dnsmasq.d/rre.conf
- source: salt://dnsmasq/files/rre.conf
- user: root
- group: root
- mode: "0644"
configure host file:
file.managed:
- name: /etc/hosts
- source: salt://dnsmasq/files/hosts
- user: root
- group: root
- mode: "0644"
start dnsmasq:
service.running:
- name: dnsmasq
- enable: True
- watch:
- file: rre.nu configuration file
- file: configure host file