summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-02-16 13:18:07 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-02-16 15:38:51 +0100
commit6b0d6843f6aab2207809d85f83639bccfea85c3d (patch)
tree141e93bfd4533fb4bcddcf24333f3095e4bf6a8d
parentDocument want for zone_file path setting. (diff)
downloaddns_record-6b0d6843f6aab2207809d85f83639bccfea85c3d.tar.gz
dns_record-6b0d6843f6aab2207809d85f83639bccfea85c3d.tar.xz
Zone flush calls create.
-rw-r--r--lib/puppet/provider/dns_zone/zonefile.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/puppet/provider/dns_zone/zonefile.rb b/lib/puppet/provider/dns_zone/zonefile.rb
index fc875e6..01c757d 100644
--- a/lib/puppet/provider/dns_zone/zonefile.rb
+++ b/lib/puppet/provider/dns_zone/zonefile.rb
@@ -39,4 +39,12 @@ Puppet::Type.type(:dns_zone).provide :zonefile do
resource[:primary]
end
+ def flush
+ # Flush is called after all parameters and properties are set, but
+ # only if the changes. It's called before refresh.
+ # Since we call write in both flush and refresh a double write
+ # might happen, but oh well.
+ create
+ end
+
end