aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/dns/manifests
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-01-13 18:12:25 +0000
committerMichael Scherer <misc@mageia.org>2011-01-13 18:12:25 +0000
commit3d55b77f3fe835b39af1b628ca78260903dc5cef (patch)
treea401739152ab3ca28ec4f8a7f7d29adaf470bd25 /deployment/dns/manifests
parent960966289de4dcf7110468cf5b7ee6f7275c7161 (diff)
downloadpuppet-3d55b77f3fe835b39af1b628ca78260903dc5cef.tar
puppet-3d55b77f3fe835b39af1b628ca78260903dc5cef.tar.gz
puppet-3d55b77f3fe835b39af1b628ca78260903dc5cef.tar.bz2
puppet-3d55b77f3fe835b39af1b628ca78260903dc5cef.tar.xz
puppet-3d55b77f3fe835b39af1b628ca78260903dc5cef.zip
move dns zone to a module in deployment
Diffstat (limited to 'deployment/dns/manifests')
-rw-r--r--deployment/dns/manifests/init.pp22
1 files changed, 22 insertions, 0 deletions
diff --git a/deployment/dns/manifests/init.pp b/deployment/dns/manifests/init.pp
new file mode 100644
index 00000000..81abea49
--- /dev/null
+++ b/deployment/dns/manifests/init.pp
@@ -0,0 +1,22 @@
+
+class dns {
+ class server {
+ include bind::bind_master
+ dns::zone { "mageia.org": }
+ dns::zone { "mageia.fr": }
+
+ dns::reverse_zone { "7.0.0.0.2.0.0.0.8.7.1.2.2.0.a.2.ip6.arpa": }
+ }
+
+ define zone {
+ bind::zone_master { $name:
+ content => template("dns/$name.zone")
+ }
+ }
+
+ define reverse_zone {
+ bind::zone_reverse { $name:
+ content => template("dns/$name.zone")
+ }
+ }
+}