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
fcdafb7f
Commit
fcdafb7f
authored
Jul 01, 2014
by
Frédéric de Villamil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds RAM disk id support for ec2_lc module.
parent
c555b3a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
library/cloud/ec2_lc
+14
-5
No files found.
library/cloud/ec2_lc
View file @
fcdafb7f
...
@@ -68,7 +68,7 @@ options:
...
@@ -68,7 +68,7 @@ options:
required: false
required: false
default: null
default: null
aliases: []
aliases: []
kern_id:
kern
el
_id:
description:
description:
- Kernel id for the EC2 instance
- Kernel id for the EC2 instance
required: false
required: false
...
@@ -85,6 +85,12 @@ options:
...
@@ -85,6 +85,12 @@ options:
required: false
required: false
default: false
default: false
aliases: []
aliases: []
ramdisk_id:
description:
- A RAM disk id for the instances.
required: false
default: null
aliases: []
extends_documentation_fragment: aws
extends_documentation_fragment: aws
"""
"""
...
@@ -145,7 +151,8 @@ def create_launch_config(connection, module):
...
@@ -145,7 +151,8 @@ def create_launch_config(connection, module):
instance_type
=
module
.
params
.
get
(
'instance_type'
)
instance_type
=
module
.
params
.
get
(
'instance_type'
)
spot_price
=
module
.
params
.
get
(
'spot_price'
)
spot_price
=
module
.
params
.
get
(
'spot_price'
)
instance_monitoring
=
module
.
params
.
get
(
'instance_monitoring'
)
instance_monitoring
=
module
.
params
.
get
(
'instance_monitoring'
)
kern_id
=
module
.
params
.
get
(
'kern_id'
)
kernel_id
=
module
.
params
.
get
(
'kernel_id'
)
ramdisk_id
=
module
.
params
.
get
(
'ramdisk_id'
)
bdm
=
BlockDeviceMapping
()
bdm
=
BlockDeviceMapping
()
if
volumes
:
if
volumes
:
...
@@ -166,8 +173,9 @@ def create_launch_config(connection, module):
...
@@ -166,8 +173,9 @@ def create_launch_config(connection, module):
block_device_mappings
=
[
bdm
],
block_device_mappings
=
[
bdm
],
instance_type
=
instance_type
,
instance_type
=
instance_type
,
instance_monitoring
=
instance_monitoring
,
instance_monitoring
=
instance_monitoring
,
kern_id
=
kern_id
,
kernel_id
=
kernel_id
,
spot_price
=
spot_price
)
spot_price
=
spot_price
,
ramdisk_id
=
ramdisk_id
)
launch_configs
=
connection
.
get_all_launch_configurations
(
names
=
[
name
])
launch_configs
=
connection
.
get_all_launch_configurations
(
names
=
[
name
])
changed
=
False
changed
=
False
...
@@ -204,12 +212,13 @@ def main():
...
@@ -204,12 +212,13 @@ def main():
key_name
=
dict
(
type
=
'str'
),
key_name
=
dict
(
type
=
'str'
),
security_groups
=
dict
(
type
=
'list'
),
security_groups
=
dict
(
type
=
'list'
),
user_data
=
dict
(
type
=
'str'
),
user_data
=
dict
(
type
=
'str'
),
kern_id
=
dict
(
type
=
'str'
),
kern
el
_id
=
dict
(
type
=
'str'
),
volumes
=
dict
(
type
=
'list'
),
volumes
=
dict
(
type
=
'list'
),
instance_type
=
dict
(
type
=
'str'
),
instance_type
=
dict
(
type
=
'str'
),
state
=
dict
(
default
=
'present'
,
choices
=
[
'present'
,
'absent'
]),
state
=
dict
(
default
=
'present'
,
choices
=
[
'present'
,
'absent'
]),
spot_price
=
dict
(
type
=
'float'
),
spot_price
=
dict
(
type
=
'float'
),
instance_monitoring
=
dict
(
default
=
False
,
type
=
'bool'
),
instance_monitoring
=
dict
(
default
=
False
,
type
=
'bool'
),
ramdisk_id
=
dict
(
type
=
'str'
),
)
)
)
)
...
...
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