aboutsummaryrefslogtreecommitdiffstats
path: root/deployment
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-01-17 18:37:05 +0000
committerNicolas Vigier <boklm@mageia.org>2013-01-17 18:37:05 +0000
commitc0c7bab121a64de9d539618a788c80e875f4b161 (patch)
treee5d382130ba5dec75abcada54ed4843ed8f2dac2 /deployment
parent41f6c3a4957d4b918bb8dc3ad043bd388c100733 (diff)
downloadpuppet-c0c7bab121a64de9d539618a788c80e875f4b161.tar
puppet-c0c7bab121a64de9d539618a788c80e875f4b161.tar.gz
puppet-c0c7bab121a64de9d539618a788c80e875f4b161.tar.bz2
puppet-c0c7bab121a64de9d539618a788c80e875f4b161.tar.xz
puppet-c0c7bab121a64de9d539618a788c80e875f4b161.zip
dns: use nodes_ipaddr variable to set ns0 and ns1 IPs
Diffstat (limited to 'deployment')
-rw-r--r--deployment/dns/templates/mageia.org.zone7
1 files changed, 5 insertions, 2 deletions
diff --git a/deployment/dns/templates/mageia.org.zone b/deployment/dns/templates/mageia.org.zone
index 70520641..cb2c3e29 100644
--- a/deployment/dns/templates/mageia.org.zone
+++ b/deployment/dns/templates/mageia.org.zone
@@ -1,3 +1,6 @@
+<%-
+ nodes = scope.lookupvar('::nodes_ipaddr')
+-%>
; puppet-distributed file
; local modifications will be lost
; $Id$
@@ -72,9 +75,9 @@ arm1 IN A 10.42.0.51
arm2 IN A 10.42.0.52
; alamut
-ns0 IN A 212.85.158.146
+ns0 IN A <%= nodes['alamut']['ipv4] %>
; krampouezh
-ns1 IN A 95.142.164.207
+ns1 IN A <%= nodes['krampouezh']['ipv4'] %>
; aliases
;www IN CNAME www-zarb