This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Using chef to create files with a time stamp or similar - in this case, | |
# the serial number in a DNS zone file - presents a problem, because the | |
# time stamp interferes with with idempotency. Here is a trick for solving | |
# this (thanks to Noah Kantrowitz for his input and suggestion!) | |
# The trick is to use the same template twice, once with a constant serial | |
# number to check for idempotency, and a second time with the "real" serial | |
# number. The actual serial number can be stored in an attribute. | |
# Initial serial number for the zone |