]> Frank Brehm's Git Trees - salt/states.git/commitdiff
Defining states for nameservers
authorFrank Brehm <frank@brehm-online.com>
Fri, 11 Mar 2016 22:52:56 +0000 (23:52 +0100)
committerFrank Brehm <frank@brehm-online.com>
Fri, 11 Mar 2016 22:52:56 +0000 (23:52 +0100)
bind/conf.sls

index d05d221cf548dc9c8d13dafbd23ce7fc132ad550..1a2722afdf71d5eed43451356555fffcafcb369a 100644 (file)
@@ -156,4 +156,21 @@ bind-conf:
     - watch_in:
       - service: bind
 
+bind-logrotate-conf-parent:
+  file.directory:
+    - name: /etc/logrotate.d
+    - makedirs: True
+
+bind-logrotate-conf:
+  file.managed:
+    - name: /etc/logrotate.d/bind
+    - source: salt://bind/files/bind.logrotate.conf
+    - user: root
+    - group: root
+    - mode: 644
+    - require:
+      - pkg: bind
+      - file: bind-logrotate-conf-parent
+      - file: /var/log/bind/.old
+
 # vim: filetype=sls