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
81d01591
Commit
81d01591
authored
Aug 20, 2014
by
e0d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code review comments
parent
a5420771
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
13 deletions
+21
-13
playbooks/edx-east/edxapp.yml
+2
-1
playbooks/edx-east/worker.yml
+3
-2
playbooks/roles/common/defaults/main.yml
+1
-0
playbooks/roles/minos/defaults/main.yml
+1
-1
playbooks/roles/minos/tasks/main.yml
+14
-9
No files found.
playbooks/edx-east/edxapp.yml
View file @
81d01591
...
...
@@ -5,7 +5,6 @@
vars
:
roles
:
-
aws
-
minos
-
role
:
nginx
nginx_sites
:
-
lms
...
...
@@ -21,3 +20,5 @@
when
:
COMMON_ENABLE_SPLUNKFORWARDER
-
role
:
newrelic
when
:
COMMON_ENABLE_NEWRELIC
-
role
:
minos
when
:
COMMON_ENABLE_MINOS
playbooks/edx-east/worker.yml
View file @
81d01591
...
...
@@ -4,7 +4,6 @@
gather_facts
:
True
roles
:
-
aws
-
minos
-
role
:
edxapp
celery_worker
:
True
-
role
:
datadog
...
...
@@ -13,5 +12,6 @@
when
:
COMMON_ENABLE_SPLUNKFORWARDER
-
role
:
newrelic
when
:
COMMON_ENABLE_NEWRELIC
-
role
:
minos
when
:
COMMON_ENABLE_MINOS
\ No newline at end of file
playbooks/roles/common/defaults/main.yml
View file @
81d01591
...
...
@@ -56,6 +56,7 @@ COMMON_ENABLE_DATADOG: False
COMMON_ENABLE_NGINXTRA
:
False
COMMON_ENABLE_SPLUNKFORWARDER
:
False
COMMON_ENABLE_NEWRELIC
:
False
COMMON_ENABLE_MINOS
:
False
COMMON_TAG_EC2_INSTANCE
:
False
common_debian_pkgs
:
-
ntp
...
...
playbooks/roles/minos/defaults/main.yml
View file @
81d01591
...
...
@@ -11,7 +11,7 @@
# Defaults for role minos
#
MINOS_GIT_IDENTITY
:
!!null
INSTALL_MINOS
:
false
#
# vars are namespace with the module name.
#
...
...
playbooks/roles/minos/tasks/main.yml
View file @
81d01591
...
...
@@ -12,13 +12,26 @@
# Tasks for role minos
#
# Overview:
#
#
# Install the, currently private, minos application
# which determines whether or not it is safe to retire
# a server
#
# Dependencies:
#
# Relies on the common role.
#
# Example play:
#
# - name: Deploy minos
# hosts: all
# sudo: True
# gather_facts: True
# vars:
# COMMON_ENABLE_MINOS: True
# roles:
# - common
# - minos
#
-
name
:
gather ec2 facts
...
...
@@ -31,14 +44,12 @@
owner=root
group=root
mode=0755
when
:
INSTALL_MINOS
-
name
:
create minos config
template
:
>
dest={{ minos_cfg_file }}
src=edx/etc/minos/minos.yml.j2
mode=0755 owner=root group=root
when
:
INSTALL_MINOS
-
name
:
create minos voters configs
template
:
>
...
...
@@ -50,7 +61,6 @@
-
"
ProccessQuienscenceVoterCelery"
-
"
ProccessQuienscenceVoterGunicorn"
-
"
TrackingLogVoter"
when
:
INSTALL_MINOS
# Optional auth for git
-
name
:
create ssh script for git (not authenticated)
...
...
@@ -58,7 +68,6 @@
src=tmp/git-identity.sh.j2 dest={{ minos_git_ssh }}
mode=750
when
:
-
INSTALL_MINOS
-
MINOS_GIT_IDENTITY is not defined
-
name
:
create ssh script for git (authenticated)
...
...
@@ -66,14 +75,12 @@
src=tmp/git-identity.sh.j2 dest={{ minos_git_ssh }}
mode=750
when
:
-
INSTALL_MINOS
-
MINOS_GIT_IDENTITY is defined
-
name
:
install read-only ssh key
copy
:
>
content="{{ COMMON_GIT_IDENTITY }}" dest="{{ minos_git_identity }}"
force=yes mode=0600
when
:
INSTALL_MINOS
-
name
:
install python custom-requirements
pip
:
>
...
...
@@ -85,4 +92,3 @@
GIT_SSH
:
"
{{
minos_git_ssh
}}"
with_items
:
-
"
{{
minos_requirement
}}"
when
:
INSTALL_MINOS
\ No newline at end of file
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