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
09f214d0
Commit
09f214d0
authored
Jun 20, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
This adds termination support to the ec2 module
parent
ec0fd2ed
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
11 deletions
+23
-11
playbooks/edx_sandbox.yml
+23
-11
playbooks/library/ec2
+0
-0
No files found.
playbooks/edx_sandbox.yml
View file @
09f214d0
-
name
:
Create sandbox instance
hosts
:
localhost
connection
:
local
user
:
root
sudo
:
False
gather_facts
:
False
vars
:
keypair
:
continuous-integration
instance_type
:
m1.large
security_group
:
sandbox
image
:
ami-d0f89fb9
region
:
us-east-1
roles
:
-
launch_instance
tasks
:
-
name
:
Launch instance
local_action
:
ec2 keypair=$keypair group=$security_group instance_type=$instance_type image=$image wait=true region=$region count=2
register
:
ec2
-
name
:
Add new instance to host group
local_action
:
add_host hostname=${item.public_ip} groupname=launched
with_items
:
${ec2.instances}
-
name
:
Wait for SSH to come up
local_action
:
wait_for host=${item.public_dns_name} port=22 delay=60 timeout=320 state=started
with_items
:
${ec2.instances}
-
name
:
Configure instance(s)
hosts
:
launched
...
...
@@ -24,8 +28,16 @@
vars_files
:
-
"
{{
secure_dir
}}/vars/edxapp_ref_users.yml"
-
"
{{
secure_dir
}}/vars/edxapp_sandbox.yml"
roles
:
-
common
-
nginx
-
edxlocal
-
edxapp
tasks
:
command
:
true
-
name
:
Terminate instances
hosts
:
localhost
connection
:
local
tasks
:
-
name
:
Terminate instances that were previously launched
local_action
:
module
:
ec2
termination_list
:
${ec2.instances}
# with_items: ${ec2.instances}
playbooks/library/ec2
0 → 100644
View file @
09f214d0
This diff is collapsed.
Click to expand it.
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