diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/puppet/functions/zones.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/puppet/functions/zones.rb b/lib/puppet/functions/zones.rb index 2f675d4..ef54427 100644 --- a/lib/puppet/functions/zones.rb +++ b/lib/puppet/functions/zones.rb @@ -6,6 +6,14 @@ def get_zone(zone_name) end if ! $zones[zone_name] + # TODO templetize this path! + # I would prefer if the user did something like + # class { 'dns_record': + # zone_pattern => '/var/named/dynamic/db.%s', + # } + # and here we used dns_record.zone_pattern. + # But I don't know how. + # Functions have the method `closure_scope` but we dont't. zone_file = "/var/named/dynamic/db.#{zone_name}" if File.exists?(zone_file) $zones[zone_name] = Zonefile.from_file(zone_file, "#{zone_name}.") |