Browse Source

add ini style inventory

Grega Bremec 2 months ago
parent
commit
94c0e5b1ea

+ 16 - 0
ini-inventory/group_vars/caching_ns.yml

@@ -0,0 +1,16 @@
+configs:
+  - dest: /etc/unbound/unbound.conf
+    group: root
+    mode: 0640
+    owner: root
+    src: unbound.conf.j2
+  - dest: /etc/sysconfig/unbound
+    group: root
+    mode: 416
+    owner: root
+    src: unbound-sysconf.j2
+packages:
+  - unbound
+test_programs:
+  - unbound-checkconf
+

+ 12 - 0
ini-inventory/group_vars/dnsservers/foo.yml

@@ -0,0 +1,12 @@
+
+packages:
+  - bind
+  - bind-utils
+configs:
+  - src: named.conf.j2
+    dest: /etc/named.conf
+    owner: named
+    group: named
+    mode: 0640
+service: bind
+fwsvc: dns

+ 24 - 0
ini-inventory/hosts

@@ -0,0 +1,24 @@
+[dnsservers:children]
+primary
+secondary
+
+[dnsservers:vars]
+service=bind
+fwsvc=dns
+
+[primary]
+serverd.lab.example.com
+
+[secondary]
+serverb.lab.example.com
+serverc.lab.example.com
+
+[caching_ns]
+servera.lab.example.com
+
+[caching_ns:vars]
+service=unbound
+fwsvc=dns
+
+[clients]
+workstation.lab.example.com