Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
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
edx
configuration
Commits
d36327fd
Commit
d36327fd
authored
Oct 08, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
size->root_ebs_size
parent
33f7e7d5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
playbooks/edx-east/edx_provision.yml
+1
-1
playbooks/library/ec2
+5
-5
playbooks/roles/launch_ec2/tasks/main.yml
+1
-1
No files found.
playbooks/edx-east/edx_provision.yml
View file @
d36327fd
...
...
@@ -10,7 +10,7 @@
ami_image
:
"
{{
ami
}}"
region
:
"
{{
region
}}"
instance_tags
:
"
{{
instance_tags
}}"
size
:
"
{{
size
}}"
root_ebs_size
:
"
{{
root_ebs_
size
}}"
dns_name
:
"
{{
dns_name
}}"
dns_zone
:
"
{{
dns_zone
}}"
...
...
playbooks/library/ec2
View file @
d36327fd
...
...
@@ -184,7 +184,7 @@ options:
required: false
default: 'present'
aliases: []
size:
root_ebs_
size:
version_added: "1.4"
desription:
- size of the root volume in gigabytes
...
...
@@ -219,7 +219,7 @@ EXAMPLES = '''
wait: yes
group: webserver
count: 3
size: 50
root_ebs_
size: 50
# Advanced example with tagging and CloudWatch
- local_action:
...
...
@@ -396,11 +396,11 @@ def create_instances(module, ec2):
vpc_subnet_id
=
module
.
params
.
get
(
'vpc_subnet_id'
)
private_ip
=
module
.
params
.
get
(
'private_ip'
)
instance_profile_name
=
module
.
params
.
get
(
'instance_profile_name'
)
size
=
module
.
params
.
get
(
'
size'
)
root_ebs_size
=
module
.
params
.
get
(
'root_ebs_
size'
)
if
size
:
dev_sda1
=
boto
.
ec2
.
blockdevicemapping
.
EBSBlockDeviceType
()
dev_sda1
.
size
=
size
dev_sda1
.
size
=
root_ebs_
size
bdm
=
boto
.
ec2
.
blockdevicemapping
.
BlockDeviceMapping
()
bdm
[
'/dev/sda1'
]
=
dev_sda1
else
:
...
...
@@ -608,7 +608,7 @@ def main():
instance_profile_name
=
dict
(),
instance_ids
=
dict
(
type
=
'list'
),
state
=
dict
(
default
=
'present'
),
size
=
dict
(
default
=
None
),
root_ebs_
size
=
dict
(
default
=
None
),
)
)
...
...
playbooks/roles/launch_ec2/tasks/main.yml
View file @
d36327fd
...
...
@@ -11,7 +11,7 @@
wait
:
true
region
:
"
{{
region
}}"
instance_tags
:
"
{{instance_tags}}"
size
:
"
{{
size
}}"
root_ebs_size
:
"
{{
root_ebs_
size
}}"
register
:
ec2
-
name
:
launch_ec2 | Add DNS name
...
...
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