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
8098771a
Commit
8098771a
authored
Nov 14, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add elb support for provisioning, for sandboxes.edx.org
parent
5107992b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
1 deletions
+26
-1
playbooks/edx-east/edx_provision.yml
+10
-0
playbooks/roles/launch_ec2/tasks/main.yml
+1
-0
util/jenkins/ansible-provision.sh
+15
-1
No files found.
playbooks/edx-east/edx_provision.yml
View file @
8098771a
...
...
@@ -32,3 +32,13 @@
# gh_users hash must be passed
# in as a -e variable
-
gh_users
post_tasks
:
-
name
:
register instance into an elb if one was provided
local_action
:
module
:
ec2_elb
region
:
"
{{
region
}}"
instance_id
:
"
{{
item
}}"
ec2_elbs
:
-
"
{{
elb
}}"
with_items
:
"
{{
ec2.instances
}}"
when
:
elb
playbooks/roles/launch_ec2/tasks/main.yml
View file @
8098771a
...
...
@@ -35,6 +35,7 @@
region
:
"
{{
region
}}"
instance_tags
:
"
{{instance_tags}}"
root_ebs_size
:
"
{{
root_ebs_size
}}"
zone
:
"
{{
zone
}}"
register
:
ec2
-
name
:
launch_ec2 | Add DNS name
...
...
util/jenkins/ansible-provision.sh
View file @
8098771a
...
...
@@ -38,6 +38,18 @@ fi
extra_vars
=
"/var/tmp/extra-vars-
$$
.yml"
if
[[
-z
$region
]]
;
then
region
=
"us-east1"
fi
if
[[
-z
$zone
]]
;
then
zone
=
"us-east-1b"
fi
if
[[
-z
$elb
]]
;
then
elb
=
"!!null"
fi
if
[[
-z
$dns_name
]]
;
then
dns_name
=
$github_username
fi
...
...
@@ -83,7 +95,8 @@ keypair: $keypair
instance_type:
$instance_type
security_group:
$security_group
ami:
$ami
region:
$region
region:
$region
zone:
$zone
instance_tags: '{"environment": "
$environment
", "github_username": "
$github_username
", "Name": "
$name_tag
", "source": "jenkins", "owner": "
$BUILD_USER
"}'
root_ebs_size:
$root_ebs_size
name_tag:
$name_tag
...
...
@@ -92,6 +105,7 @@ gh_users:
dns_zone:
$dns_zone
rabbitmq_refresh: True
GH_USERS_PROMPT: '[
$name_tag
] '
elb: "
$elb
"
EOF
cat
$extra_vars
# run the tasks to launch an ec2 instance from AMI
...
...
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