From 2de9fe0e671d4de5ede1ba579304006fad47706e Mon Sep 17 00:00:00 2001 From: John Baublitz Date: Sat, 18 Jun 2016 09:16:37 +0000 Subject: [PATCH] Doc update --- cloud/google/gce_net.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/cloud/google/gce_net.py b/cloud/google/gce_net.py index 3ee4a84f7e5..128fdb41291 100644 --- a/cloud/google/gce_net.py +++ b/cloud/google/gce_net.py @@ -114,7 +114,11 @@ options: mode: version_added: "2.2" description: - - network mode supporting subnets introduced into Google Cloud + - network mode for Google Cloud + "legacy" indicates a network with an IP address range + "auto" automatically generates subnetworks in different regions + "custom" uses networks to group subnets of user specified IP address ranges + https://cloud.google.com/compute/docs/networking#network_types required: false default: "legacy" choices: ["legacy", "auto", "custom"] @@ -162,6 +166,21 @@ EXAMPLES = ''' allowed: tcp:80,8080 src_tags: ["web", "proxy"] +# Simple example of creating a new auto network +- local_action: + module: gce_net + name: privatenet + mode: auto + +# Simple example of creating a new custom subnet +- local_action: + module: gce_net + name: privatenet + mode: custom + subnet_name: subnet_example + subnet_region: us-central1 + ipv4_range: 10.0.0.0/16 + ''' try: