This commit is contained in:
Jake Spain 2023-02-10 08:24:02 -05:00
parent cbb3ad3904
commit 9bef22abe6
No known key found for this signature in database
GPG key ID: BC1C4DA0A085E113

View file

@ -45,6 +45,10 @@ module Vmpooler
end
# main configuration options
def project
dns_config['project']
end
def zone_name
dns_config['zone_name']
end
@ -80,12 +84,11 @@ module Vmpooler
retry_factor = global_config[:config]['retry_factor'] || 10
try = 1
begin
scopes = ['https://www.googleapis.com/auth/cloud-platform']
Google::Auth.get_application_default(scopes)
Google::Cloud::Dns.configure do |config|
config.project_id = project
end
dns = Google::Cloud::Dns.new
# dns.authorization = authorization
metrics.increment('connect.open')
dns