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
OpenEdx
configuration
Commits
03bcd1c2
Commit
03bcd1c2
authored
May 09, 2014
by
Feanil Patel
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1076 from edx/feanil/abbey_volume_size
Feanil/abbey volume size
parents
f516c0d1
5107d2f3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
+10
-1
util/vpc-tools/abbey.py
+10
-1
No files found.
util/vpc-tools/abbey.py
View file @
03bcd1c2
...
...
@@ -11,6 +11,7 @@ try:
from
boto.vpc
import
VPCConnection
from
boto.exception
import
NoAuthHandlerFound
,
EC2ResponseError
from
boto.sqs.message
import
RawMessage
from
boto.ec2.blockdevicemapping
import
BlockDeviceType
,
BlockDeviceMapping
except
ImportError
:
print
"boto required for script"
sys
.
exit
(
1
)
...
...
@@ -119,6 +120,10 @@ def parse_args():
parser
.
add_argument
(
"--hipchat-api-token"
,
required
=
False
,
default
=
None
,
help
=
"The API token for Hipchat integration"
)
parser
.
add_argument
(
"--root-vol-size"
,
required
=
False
,
default
=
50
,
help
=
"The size of the root volume to use for the "
"abbey instance."
)
group
=
parser
.
add_mutually_exclusive_group
()
group
.
add_argument
(
'-b'
,
'--base-ami'
,
required
=
False
,
...
...
@@ -337,6 +342,10 @@ rm -rf $base_dir
secure_vars
=
secure_vars
,
cache_id
=
args
.
cache_id
)
mapping
=
BlockDeviceMapping
()
root_vol
=
BlockDeviceType
(
size
=
args
.
root_vol_size
)
mapping
[
'/dev/sda1'
]
=
root_vol
ec2_args
=
{
'security_group_ids'
:
[
security_group_id
],
'subnet_id'
:
subnet_id
,
...
...
@@ -345,7 +354,7 @@ rm -rf $base_dir
'instance_type'
:
args
.
instance_type
,
'instance_profile_name'
:
args
.
role_name
,
'user_data'
:
user_data
,
'block_device_map'
:
mapping
,
}
return
ec2_args
...
...
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