1fddef7a97
Because of HSTS problems I created a new home tld to host all internal services that is runned by self signed certs
38 lines
774 B
Plaintext
38 lines
774 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"
|
|
|
|
rre.home configuration file:
|
|
file.managed:
|
|
- name: /etc/dnsmasq.d/home.conf
|
|
- source: salt://dnsmasq/files/home.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: rre.home configuration file
|
|
- file: configure host file
|