From dd503b1f7fa5ef1a728e6868d2fd1109a3d3cfcb Mon Sep 17 00:00:00 2001 From: Thomas S Hatch Date: Wed, 12 Jun 2013 22:54:58 -0400 Subject: [PATCH] Add initial sls --- dnsmasq/init.sls | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 dnsmasq/init.sls diff --git a/dnsmasq/init.sls b/dnsmasq/init.sls new file mode 100644 index 0000000..9ee8f87 --- /dev/null +++ b/dnsmasq/init.sls @@ -0,0 +1,28 @@ +dnsmasq: + pkg: + - installed + service: + - running + - enable: True + - require: + - pkg: dnsmasq + - watch: + - file: /etc/dnsmasq.conf + - file: /etc/dnsmasq.d + +/etc/dnsmasq.conf: + file.managed: + - source: salt://dnsmasq/files/dnsmasq.conf + - user: root + - group: root + - mode: 644 + - template: jinja + - require: + - pkg: dnsmasq + +/etc/dnsmasq.d: + file.recurse: + - source: salt://dnsmasq/files/dnsmasq.d + - template: jinja + - require: + - pkg: dnsmasq