3
4
5
6
7
8
9
10
11
12
13
14
|
# File 'lib/bosh/director/dns/dns_manager.rb', line 3
def self.create
dns_config = Config.dns || {}
logger = Config.logger
dns_domain_name = Canonicalizer.canonicalize(dns_config.fetch('domain_name', 'bosh'), :allow_dots => true)
local_dns_repo = LocalDnsRepo.new(logger)
dns_publisher = BlobstoreDnsPublisher.new(App.instance.blobstores.blobstore, dns_domain_name) if Config.local_dns
dns_provider = PowerDns.new(dns_domain_name, logger) if !!Config.dns_db
DnsManager.new(dns_domain_name, dns_config, dns_provider, dns_publisher, local_dns_repo, logger)
end
|