Last active
August 29, 2015 14:27
-
-
Save mjinks/c0487130950d2fb31ab4 to your computer and use it in GitHub Desktop.
My bind column has a gap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bind: | |
{# keys: #} | |
lookup: | |
pkgs: | |
- bind9 | |
service: bind9 | |
config: | |
tmpl: salt://bind/files/debian/named.conf | |
user: root | |
group: bind | |
mode: 640 | |
configured_zones: | |
peerlessnetwork.com: | |
type: master | |
notify: False | |
40.93.208.in-addr.arpa: | |
type: master | |
notify: False | |
available_zones: | |
peerlessnetwork.com: | |
file: db.peerlessnetwork.com | |
masters: "208.93.40.52, 208.93.42.60;" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# excerpt the goodies should be coming from #} | |
{% for key, args in salt['pillar.get']('bind:configured_zones', {}).iteritems() -%} | |
{%- set file = salt['pillar.get']("bind:available_zones:" ~ key ~ ":file", "nofilefound") %} | |
{% if args['type'] == "master" -%} | |
zones-{{ file }}: | |
file.managed: | |
- name: {{ map.named_directory }}/{{ file }} | |
- source: 'salt://bind/zones/{{ file }}' | |
- user: {{ salt['pillar.get']('bind:config:user', map.user) }} | |
- group: {{ salt['pillar.get']('bind:config:group', map.group) }} | |
- mode: {{ salt['pillar.get']('bind:config:mode', '644') }} | |
- watch_in: | |
- service: bind | |
- require: | |
- file: named_directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---------- | |
ID: zones- | |
Function: file.managed | |
Name: /var/cache/bind/zones/ | |
Result: False | |
Comment: Specified target /var/cache/bind/zones/ is a directory | |
Started: 14:33:55.137653 | |
Duration: 0.458 ms | |
Changes: | |
[snip] | |
---------- | |
ID: bind | |
Function: service.running | |
Name: bind9 | |
Result: False | |
Comment: One or more requisite failed: bind.config.zones- | |
Started: | |
Duration: | |
Changes: | |
---------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment