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
77ef40e9
Commit
77ef40e9
authored
Jan 15, 2014
by
John Jarvis
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin' into jarv/dump_vars
parents
f7255bcc
e1c2b84a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
playbooks/edx-east/edx_provision.yml
+0
-1
util/vpc-tools/abbey.py
+8
-5
No files found.
playbooks/edx-east/edx_provision.yml
View file @
77ef40e9
...
...
@@ -44,7 +44,6 @@
-
xserver
nginx_default_sites
:
-
lms
-
cms
# gh_users hash must be passed
# in as a -e variable
-
gh_users
...
...
util/vpc-tools/abbey.py
View file @
77ef40e9
...
...
@@ -8,7 +8,7 @@ try:
import
boto.ec2
import
boto.sqs
from
boto.vpc
import
VPCConnection
from
boto.exception
import
NoAuthHandlerFound
from
boto.exception
import
NoAuthHandlerFound
,
EC2ResponseError
from
boto.sqs.message
import
RawMessage
except
ImportError
:
print
"boto required for script"
...
...
@@ -461,7 +461,7 @@ def create_ami(instance_id, name, description):
break
else
:
time
.
sleep
(
1
)
except
boto
.
exception
.
EC2ResponseError
as
e
:
except
EC2ResponseError
as
e
:
if
e
.
error_code
==
'InvalidAMIID.NotFound'
:
time
.
sleep
(
1
)
else
:
...
...
@@ -489,6 +489,8 @@ def launch_and_configure(ec2_args):
print
" {:<25}{}"
.
format
(
k
,
v
)
print
global
sqs_queue
global
instance_id
sqs_queue
=
sqs
.
create_queue
(
run_id
)
sqs_queue
.
set_message_class
(
RawMessage
)
res
=
ec2
.
run_instances
(
**
ec2_args
)
...
...
@@ -571,7 +573,7 @@ if __name__ == '__main__':
if
args
.
vars
:
with
open
(
args
.
vars
)
as
f
:
extra_vars_yml
=
f
.
read
()
extra_vars
=
yaml
.
load
(
f
.
read
)
extra_vars
=
yaml
.
load
(
extra_vars_yml
)
else
:
extra_vars_yml
=
"---
\n
"
extra_vars
=
{}
...
...
@@ -623,7 +625,6 @@ if __name__ == '__main__':
if
args
.
mongo_host
:
mongo_con
.
update_ami
(
ami
)
mongo_con
.
update_deployment
(
ami
)
finally
:
print
if
not
args
.
no_cleanup
and
not
args
.
noop
:
...
...
@@ -633,4 +634,6 @@ if __name__ == '__main__':
if
instance_id
:
print
"Cleaning up - Terminating instance ID - {}"
.
format
(
instance_id
)
ec2
.
terminate_instances
(
instance_ids
=
[
instance_id
])
# Check to make sure we have an instance id.
if
instance_id
:
ec2
.
terminate_instances
(
instance_ids
=
[
instance_id
])
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