Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
c6245771
Commit
c6245771
authored
Apr 05, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2550 from joelsemar/devel
adds private_ip param to ec2 module
parents
49d28b9a
d9c2dcf7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
library/ec2
+11
-0
No files found.
library/ec2
View file @
c6245771
...
...
@@ -135,6 +135,14 @@ options:
required: false
default: null
aliases: []
private_ip:
version_added: "?.?"
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"
...
...
@@ -176,6 +184,7 @@ def main():
user_data
=
dict
(),
instance_tags
=
dict
(),
vpc_subnet_id
=
dict
(),
private_ip
=
dict
(),
)
)
...
...
@@ -197,6 +206,7 @@ def main():
user_data
=
module
.
params
.
get
(
'user_data'
)
instance_tags
=
module
.
params
.
get
(
'instance_tags'
)
vpc_subnet_id
=
module
.
params
.
get
(
'vpc_subnet_id'
)
private_ip
=
module
.
params
.
get
(
'private_ip'
)
# allow eucarc environment variables to be used if ansible vars aren't set
if
not
ec2_url
and
'EC2_URL'
in
os
.
environ
:
...
...
@@ -254,6 +264,7 @@ def main():
kernel_id
=
kernel
,
ramdisk_id
=
ramdisk
,
subnet_id
=
vpc_subnet_id
,
private_ip_address
=
private_ip
,
user_data
=
user_data
)
except
boto
.
exception
.
BotoServerError
,
e
:
module
.
fail_json
(
msg
=
"
%
s:
%
s"
%
(
e
.
error_code
,
e
.
error_message
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment