salt-states/pod/dnsmasq.sls

22 lines
463 B
Plaintext
Raw Normal View History

2023-06-27 07:16:37 +00:00
{% from 'lib.sls' import pod_deploy with context %}
Create dnsmasq config directory:
file.recurse:
- name: /srv/dnsmasq
- source: salt://dnsmasq
- template: jinja
- user: root
- group: root
- dir_mode: "0755"
- file_mode: "0644"
- include_empty: True
{{ pod_deploy('dnsmasq') }}
Make sure dnsmasq is running:
service.running:
- name: dnsmasq
- enable: True
- watch:
- file: Create dnsmasq config directory