How to generate good serials for DNS zones with Puppet?
Posted
by
Bittrance
on Server Fault
See other posts from Server Fault
or by Bittrance
Published on 2011-11-29T04:03:15Z
Indexed on
2011/11/29
9:52 UTC
Read the original article
Hit count: 202
My tradition is to set all zone serials to the timestamp at modification. Now that Puppet is my new religion, I want to set serial timestamps when building zone files from exported resources. A somewhat trivialized example may look like this:
file { "/tmp/dafile": content = inline_template("<%= Time.now.to_i %>"), }
The problem with this approach is that content will be different all the time, which will (ultimately) provoke rebuilding of zone files on each puppet config poll.
Is there some way I can insert a timestamp without it being included in the data that is compared against previous state?
© Server Fault or respective owner