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
0fec6229
Commit
0fec6229
authored
Apr 26, 2013
by
jarv
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14 from edx/jarv/rolling-clarifications
change module->library, update the example playbook
parents
f5f06275
d431e23f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
+10
-1
playbooks/edxapp_rolling_example.yml
+10
-1
playbooks/library/ec2_elb_facts
+0
-0
No files found.
playbooks/edxapp_rolling_example.yml
View file @
0fec6229
# ansible-playbook -v --user=ubuntu edxapp_rolling_example.yml -i ./ec2.py --private-key=/path/to/deployment.pem --module-path /path/to/repo/modules
# ansible-playbook -v --user=ubuntu edxapp_rolling_example.yml -i ./ec2.py --private-key=/path/to/deployment.pem
-
hosts
:
tag_Group_anothermulti
serial
:
1
vars_files
:
...
...
@@ -10,10 +11,18 @@
ec2_facts
:
-
name
:
Gathering ELB facts
local_action
:
ec2_elb_facts
# These two modules "ec2_facts" and "ec2_elb_facts" are invoked in the
# pre_tasks and give us the $elbs and $ansible_ec2_isntance_id facts
# which are variables that can be used in the playbook
-
local_action
:
command util/elb_reg.py -e {{ ",".join(elbs[ansible_ec2_instance_id]) }} -i {{ ansible_ec2_instance_id }} deregister
# -e is the list of elbs that the current instances belong to and -i is
# the instance "active_elbs" are the elbs that are passed in.
roles
:
-
common
-
nginx
-
lms
post_tasks
:
-
local_action
:
command util/elb_reg.py -e {{ ",".join(elbs[ansible_ec2_instance_id]) }} -i {{ ansible_ec2_instance_id }} register
# Register will pass in the same elb list and the same instance id
# to add it back to the pool
playbooks/
modules
/ec2_elb_facts
→
playbooks/
library
/ec2_elb_facts
View file @
0fec6229
File moved
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