From 8f02b02278f46366956e694e20050b585a55d226 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Wed, 23 Sep 2015 16:29:00 -0400 Subject: Add DnsServers param to network config templates This patch adds a new optional DnsServers parameter which can be used to provide a custom list of DNS resolvers which will be configured in resolv.conf. Change-Id: I2bb7259ebc09d786dc56da18694c862f802091b1 Depends-On: I9edecfdd4e1d0f39883b72be554cd92c5685881d --- net-config-static-bridge.yaml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'net-config-static-bridge.yaml') diff --git a/net-config-static-bridge.yaml b/net-config-static-bridge.yaml index 38b483bd..52c8f895 100644 --- a/net-config-static-bridge.yaml +++ b/net-config-static-bridge.yaml @@ -36,6 +36,10 @@ parameters: ControlPlaneDefaultRoute: # Override this via parameter_defaults description: The default route of the control plane network. type: string + DnsServers: # Override this via parameter_defaults + default: [] + description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf. + type: comma_delimited_list EC2MetadataIp: # Override this via parameter_defaults description: The IP address of the EC2 metadata server. type: string @@ -52,6 +56,7 @@ resources: type: ovs_bridge name: {get_input: bridge_name} use_dhcp: false + dns_servers: {get_param: DnsServers} addresses: - ip_netmask: -- cgit 1.2.3-korg