mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Get zone from config and add dns/base_spec
This commit is contained in:
parent
65f04254a8
commit
b1e20a2fc0
3 changed files with 184 additions and 4 deletions
|
|
@ -34,6 +34,18 @@ module Vmpooler
|
|||
nil
|
||||
end
|
||||
|
||||
# Returns this dns plugin's configuration
|
||||
#
|
||||
# @returns [Hashtable] This dns plugins's configuration from the config file. Returns nil if the dns plugin config does not exist
|
||||
def dns_config
|
||||
@config[:dns_configs].each do |dns|
|
||||
# Convert the symbol from the config into a string for comparison
|
||||
return (dns[1].nil? ? {} : dns[1]) if dns[0].to_s == @dns_plugin_name
|
||||
end
|
||||
|
||||
nil
|
||||
end
|
||||
|
||||
def global_config
|
||||
# This entire VM Pooler config
|
||||
@config
|
||||
|
|
|
|||
|
|
@ -34,10 +34,6 @@ module Vmpooler
|
|||
|
||||
# Helper Methods
|
||||
|
||||
def get_dns_plugin_for_pool(pool_name)
|
||||
|
||||
end
|
||||
|
||||
# inputs
|
||||
# [String] pool_name : Name of the pool to get the configuration
|
||||
# returns
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue