mirror of
https://github.com/puppetlabs/vmpooler-dns-gcp.git
synced 2026-01-26 02:58:42 -05:00
Temp commit - bump TTL to 3600
This commit is contained in:
parent
5101be683c
commit
eac05efe03
1 changed files with 2 additions and 2 deletions
|
|
@ -57,12 +57,12 @@ module Vmpooler
|
||||||
debug_logger("An IP Address was not recorded for #{hostname}")
|
debug_logger("An IP Address was not recorded for #{hostname}")
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
change = connection.zone(zone_name).add(hostname, 'A', 60, ip)
|
change = connection.zone(zone_name).add(hostname, 'A', 3600, ip)
|
||||||
debug_logger("#{change.id} - #{change.started_at} - #{change.status} DNS address added") if change
|
debug_logger("#{change.id} - #{change.started_at} - #{change.status} DNS address added") if change
|
||||||
rescue Google::Cloud::AlreadyExistsError => _e
|
rescue Google::Cloud::AlreadyExistsError => _e
|
||||||
# the error is Google::Cloud::AlreadyExistsError: alreadyExists: The resource 'entity.change.additions[0]' named 'instance-8.test.vmpooler.net. (A)' already exists
|
# the error is Google::Cloud::AlreadyExistsError: alreadyExists: The resource 'entity.change.additions[0]' named 'instance-8.test.vmpooler.net. (A)' already exists
|
||||||
# the error is Google::Cloud::AlreadyExistsError: alreadyExists: The resource 'entity.change.additions[0]' named 'instance-8.test.vmpooler.net. (A)' already exists
|
# the error is Google::Cloud::AlreadyExistsError: alreadyExists: The resource 'entity.change.additions[0]' named 'instance-8.test.vmpooler.net. (A)' already exists
|
||||||
change = connection.zone(zone_name).replace(hostname, 'A', 60, ip)
|
change = connection.zone(zone_name).replace(hostname, 'A', 3600, ip)
|
||||||
debug_logger("#{change.id} - #{change.started_at} - #{change.status} DNS address previously existed and was replaced") if change
|
debug_logger("#{change.id} - #{change.started_at} - #{change.status} DNS address previously existed and was replaced") if change
|
||||||
rescue Google::Cloud::FailedPreconditionError => e
|
rescue Google::Cloud::FailedPreconditionError => e
|
||||||
debug_logger("DNS create failed, retrying error: #{e}")
|
debug_logger("DNS create failed, retrying error: #{e}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue