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
5df1a16c
Commit
5df1a16c
authored
May 28, 2014
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updating the commoncluster plays so that they can be run from jenkins
parent
8c244a51
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
138 additions
and
1 deletions
+138
-1
playbooks/edx-east/commoncluster.yml
+33
-1
playbooks/edx-east/elasticsearch.yml
+34
-0
playbooks/edx-east/rabbitmq.yml
+34
-0
playbooks/edx-east/xqueue.yml
+33
-0
playbooks/library/ec2_elb_local_1.6.2
+0
-0
util/vpc-tools/abbey.py
+4
-0
No files found.
playbooks/edx-east/commoncluster.yml
View file @
5df1a16c
...
...
@@ -7,6 +7,26 @@
ENABLE_DATADOG
:
False
ENABLE_SPLUNKFORWARDER
:
False
ENABLE_NEWRELIC
:
False
# By default take instances in and out of the elb(s) they
# are attached to
# To skip elb operations use "-e elb_pre_post=fase"
elb_pre_post
:
true
# Number of instances to operate on at a time
serial_count
:
1
serial
:
"
{{
serial_count
}}"
pre_tasks
:
-
action
:
ec2_facts
when
:
elb_pre_post
-
debug
:
var="{{ ansible_ec2_instance_id }}"
when
:
elb_pre_post
-
name
:
Instance De-register
local_action
:
ec2_elb_local_1.6.2
args
:
instance_id
:
"
{{
ansible_ec2_instance_id
}}"
region
:
us-east-1
state
:
absent
sudo
:
False
when
:
elb_pre_post
roles
:
-
aws
-
role
:
nginx
...
...
@@ -24,7 +44,19 @@
-
rabbitmq
-
datadog
-
splunkforwarder
post_tasks
:
-
debug
:
var="{{ ansible_ec2_instance_id }}"
when
:
elb_pre_post
-
name
:
Register instance in the elb
local_action
:
ec2_elb_local_1.6.2
args
:
instance_id
:
"
{{
ansible_ec2_instance_id
}}"
ec2_elbs
:
"
{{
item
}}"
region
:
us-east-1
state
:
present
with_items
:
ec2_elbs
sudo
:
False
when
:
elb_pre_post
#
# In order to reconfigure the host resolution we are issuing a
# reboot.
...
...
playbooks/edx-east/elasticsearch.yml
View file @
5df1a16c
...
...
@@ -3,7 +3,41 @@
vars_files
:
-
"
{{
secure_dir
}}/vars/common/common.yml"
-
"
{{
secure_dir
}}/vars/stage/stage-edx.yml"
vars
:
# By default take instances in and out of the elb(s) they
# are attached to
# To skip elb operations use "-e elb_pre_post=fase"
elb_pre_post
:
true
# Number of instances to operate on at a time
serial_count
:
1
serial
:
"
{{
serial_count
}}"
pre_tasks
:
-
action
:
ec2_facts
when
:
elb_pre_post
-
debug
:
var="{{ ansible_ec2_instance_id }}"
when
:
elb_pre_post
-
name
:
Instance De-register
local_action
:
ec2_elb_local_1.6.2
args
:
instance_id
:
"
{{
ansible_ec2_instance_id
}}"
region
:
us-east-1
state
:
absent
sudo
:
False
when
:
elb_pre_post
roles
:
-
common
-
oraclejdk
-
elasticsearch
post_tasks
:
-
debug
:
var="{{ ansible_ec2_instance_id }}"
when
:
elb_pre_post
-
name
:
Register instance in the elb
local_action
:
ec2_elb_local_1.6.2
args
:
instance_id
:
"
{{
ansible_ec2_instance_id
}}"
ec2_elbs
:
"
{{
item
}}"
region
:
us-east-1
state
:
present
with_items
:
ec2_elbs
sudo
:
False
when
:
elb_pre_post
playbooks/edx-east/rabbitmq.yml
View file @
5df1a16c
...
...
@@ -5,6 +5,40 @@
# ansible_default_ipv4 so
# gather_facts must be set to True
gather_facts
:
True
vars
:
# By default take instances in and out of the elb(s) they
# are attached to
# To skip elb operations use "-e elb_pre_post=fase"
elb_pre_post
:
true
# Number of instances to operate on at a time
serial_count
:
1
serial
:
"
{{
serial_count
}}"
pre_tasks
:
-
action
:
ec2_facts
when
:
elb_pre_post
-
debug
:
var="{{ ansible_ec2_instance_id }}"
when
:
elb_pre_post
-
name
:
Instance De-register
local_action
:
ec2_elb_local_1.6.2
args
:
instance_id
:
"
{{
ansible_ec2_instance_id
}}"
region
:
us-east-1
state
:
absent
sudo
:
False
when
:
elb_pre_post
roles
:
-
aws
-
rabbitmq
post_tasks
:
-
debug
:
var="{{ ansible_ec2_instance_id }}"
when
:
elb_pre_post
-
name
:
Register instance in the elb
local_action
:
ec2_elb_local_1.6.2
args
:
instance_id
:
"
{{
ansible_ec2_instance_id
}}"
ec2_elbs
:
"
{{
item
}}"
region
:
us-east-1
state
:
present
with_items
:
ec2_elbs
sudo
:
False
when
:
elb_pre_post
playbooks/edx-east/xqueue.yml
View file @
5df1a16c
...
...
@@ -6,6 +6,26 @@
ENABLE_DATADOG
:
False
ENABLE_SPLUNKFORWARDER
:
False
ENABLE_NEWRELIC
:
False
# By default take instances in and out of the elb(s) they
# are attached to
# To skip elb operations use "-e elb_pre_post=fase"
elb_pre_post
:
true
# Number of instances to operate on at a time
serial_count
:
1
serial
:
"
{{
serial_count
}}"
pre_tasks
:
-
action
:
ec2_facts
when
:
elb_pre_post
-
debug
:
var="{{ ansible_ec2_instance_id }}"
when
:
elb_pre_post
-
name
:
Instance De-register
local_action
:
ec2_elb_local_1.6.2
args
:
instance_id
:
"
{{
ansible_ec2_instance_id
}}"
region
:
us-east-1
state
:
absent
sudo
:
False
when
:
elb_pre_post
roles
:
-
aws
-
role
:
nginx
...
...
@@ -18,3 +38,16 @@
when
:
ENABLE_SPLUNKFORWARDER
-
role
:
newrelic
when
:
ENABLE_NEWRELIC
post_tasks
:
-
debug
:
var="{{ ansible_ec2_instance_id }}"
when
:
elb_pre_post
-
name
:
Register instance in the elb
local_action
:
ec2_elb_local_1.6.2
args
:
instance_id
:
"
{{
ansible_ec2_instance_id
}}"
ec2_elbs
:
"
{{
item
}}"
region
:
us-east-1
state
:
present
with_items
:
ec2_elbs
sudo
:
False
when
:
elb_pre_post
playbooks/library/ec2_elb_local_1.6.2
0 → 100644
View file @
5df1a16c
This diff is collapsed.
Click to expand it.
util/vpc-tools/abbey.py
View file @
5df1a16c
...
...
@@ -294,6 +294,10 @@ EDXAPP_UPDATE_STATIC_FILES_KEY: true
edxapp_dynamic_cache_key: {deployment}-{environment}-{play}-{cache_id}
disable_edx_services: true
# abbey should never take instances in
# and out of elbs
elb_pre_post: false
EOF
chmod 400 $secure_identity
...
...
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