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

47 lines
1002 B
Plaintext
Raw Normal View History

2020-12-22 10:36:05 +00:00
Install dnsmasq:
pkg.installed:
- name: dnsmasq
2022-11-02 10:18:20 +00:00
dnsmasq.conf configuration file:
file.managed:
- name: /etc/dnsmasq.conf
- source: salt://dnsmasq/files/dnsmasq.conf
- user: root
- group: root
- mode: "0644"
2020-12-22 10:36:05 +00:00
rre.nu configuration file:
file.managed:
- name: /etc/dnsmasq.d/rre.conf
- source: salt://dnsmasq/files/rre.conf
- user: root
- group: root
- mode: "0644"
rre.home configuration file:
file.managed:
- name: /etc/dnsmasq.d/home.conf
- source: salt://dnsmasq/files/home.conf
- user: root
- group: root
- mode: "0644"
2020-12-23 12:17:51 +00:00
configure host file:
file.managed:
- name: /etc/hosts
- source: salt://dnsmasq/files/hosts
- user: root
- group: root
- mode: "0644"
2020-12-22 10:36:05 +00:00
start dnsmasq:
service.running:
- name: dnsmasq
- enable: True
- watch:
- file: rre.nu configuration file
- file: rre.home configuration file
2020-12-23 12:17:51 +00:00
- file: configure host file
2022-11-02 10:18:20 +00:00
- file: dnsmasq.conf configuration file