From 18e86ea1ff3bade3d1af15c2e27f0d354c3c62bf Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 5 Apr 2013 15:30:36 -0400 Subject: [PATCH] Fixup ec2 doc formatting and use complex args format to break up long lines. --- ec2 | 44 +++++++++++++++++++++++++++++++++++--------- 1 file changed, 35 insertions(+), 9 deletions(-) diff --git a/ec2 b/ec2 index 7b9827df470..70f0ea02bdf 100644 --- a/ec2 +++ b/ec2 @@ -136,24 +136,50 @@ options: default: null aliases: [] private_ip: - version_added: "?.?" + version_added: "1.2" description: - the private ip address to assign the instance (from the vpc subnet) required: false defualt: null aliases: [] - -examples: - - code: 'local_action: ec2 keypair=mykey instance_type=c1.medium image=emi-40603AD1 wait=yes group=webserver count=3' - description: "Basic provisioning example" - - code: 'local_action: ec2 keypair=mykey group=databases instance_type=m1.large image=ami-6e649707 wait=yes wait_timeout=500 count=5 instance_tags='{"db":"postgres"}' monitoring=true' - description: "Advanced example with tagging and CloudWatch" - - code: 'local_action: ec2 keypair=mykey group_id=sg-1dc53f72 instance_type=m1.small image=ami-6e649707 wait=yes vpc_subnet_id=subnet-29e63245' - description: "VPC example" requirements: [ "boto" ] author: Seth Vidal, Tim Gerla, Lester Wade ''' +EXAMPLES = ''' +# Basic provisioning example +local_action: + module: ec2 + keypair: mykey + instance_type: c1.medium + image: emi-40603AD1 + wait: yes + group: webserver + count: 3 + +# Advanced example with tagging and CloudWatch +local_action: + module: ec2 + keypair: mykey + group: databases + instance_type: m1.large + image: ami-6e649707 + wait: yes + wait_timeout: 500 + count: 5 + instance_tags: '{"db":"postgres"}' monitoring=true' + +# VPC example +local_action: + module: ec2 + keypair: mykey + group_id: sg-1dc53f72 + instance_type: m1.small + image: ami-6e649707 + wait: yes + vpc_subnet_id: subnet-29e63245' +''' + import sys import time