Module: ChefVPCToolkit
- Defined in:
- lib/chef-vpc-toolkit.rb,
lib/chef-vpc-toolkit/util.rb,
lib/chef-vpc-toolkit/version.rb,
lib/chef-vpc-toolkit/ssh_util.rb,
lib/chef-vpc-toolkit/xml_util.rb,
lib/chef-vpc-toolkit/vpn_openvpn.rb,
lib/chef-vpc-toolkit/chef_installer.rb,
lib/chef-vpc-toolkit/vpn_connection.rb,
lib/chef-vpc-toolkit/vpn_network_manager.rb,
lib/chef-vpc-toolkit/cloud-servers-vpc/client.rb,
lib/chef-vpc-toolkit/cloud-servers-vpc/server.rb,
lib/chef-vpc-toolkit/cloud-servers-vpc/connection.rb,
lib/chef-vpc-toolkit/cloud-servers-vpc/server_group.rb,
lib/chef-vpc-toolkit/cloud-servers-vpc/ssh_public_key.rb,
lib/chef-vpc-toolkit/cloud-servers-vpc/vpn_network_interface.rb
Defined Under Namespace
Modules: ChefInstaller, CloudServersVPC, SshUtil, Util, XMLUtil Classes: Version, VpnConnection, VpnNetworkManager, VpnOpenVpn
Class Method Summary collapse
-
.get_vpn_connection(group, client = nil) ⇒ Object
Loads the appropriate VPN connection type based on the configuration variable ‘vpn_connection_type’.
Class Method Details
.get_vpn_connection(group, client = nil) ⇒ Object
Loads the appropriate VPN connection type based on the configuration variable ‘vpn_connection_type’.
21 22 23 24 25 26 27 28 |
# File 'lib/chef-vpc-toolkit.rb', line 21 def self.get_vpn_connection(group, client = nil) configs = Util.load_configs if "#{configs['vpn_connection_type']}" == "network_manager" VpnNetworkManager.new(group, client) else VpnOpenVpn.new(group, client) end end |