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
bb6875ed
Commit
bb6875ed
authored
9 years ago
by
Bilal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Addressing comments
parent
cb53c7b6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
56 deletions
+25
-56
playbooks/roles/appneta/defaults/main.yml
+5
-2
playbooks/roles/appneta/handlers/main.yml
+0
-4
playbooks/roles/appneta/meta/main.yml
+7
-0
playbooks/roles/appneta/tasks/main.yml
+11
-50
playbooks/roles/edxapp/templates/cms_gunicorn.py.j2
+1
-0
playbooks/roles/edxapp/templates/lms_gunicorn.py.j2
+1
-0
No files found.
playbooks/roles/appneta/defaults/main.yml
View file @
bb6875ed
...
...
@@ -15,9 +15,12 @@
# vars are namespaced with the module name.
#
appneta_role_name
:
appneta
appneta_user
:
'
{{
appneta_role_name
}}'
appneta_home
:
'
{{
COMMON_APP_DIR
}}/{{
appneta_role_name
}}'
appneta_venv_dir
:
'
{{
appneta_home
}}/venvs/{{
appneta_role_name
}}'
USE_STATIC_CONFIG
:
false
apt_server
:
"
apt.appneta.com
"
config_server
:
"
config.tv.appneta.com
"
apt_server
:
"
{{
(USE_STATIC_CONFIG
==
true)
|
ternary('apt-static.appneta.com','apt.appneta.com')
}}
"
config_server
:
"
{{
(USE_STATIC_CONFIG
==
true)
|
ternary('config-static.appneta.com','config.tv.appneta.com')
}}
"
skip_certs
:
true
ACCESS_KEY
:
"
eb3e9f99-f37e-4f66-b87b-cae73313ad9c"
install_sequencer
:
true
...
...
This diff is collapsed.
Click to expand it.
playbooks/roles/appneta/handlers/main.yml
deleted
100644 → 0
View file @
cb53c7b6
---
-
name
:
restart nginx
service
:
name=nginx state=restarted
This diff is collapsed.
Click to expand it.
playbooks/roles/appneta/meta/main.yml
View file @
bb6875ed
...
...
@@ -20,3 +20,10 @@
# }
dependencies
:
-
common
-
role
:
edx_service
edx_service_name
:
"
{{
appneta_role_name
}}"
edx_service_user
:
"
{{
appneta_user
}}"
edx_service_home
:
"
{{
appneta_home
}}"
edx_service_packages
:
debian
:
"
{{
appneta_debian_pkgs
}}"
redhat
:
"
{{
appneta_redhat_pkgs
}}"
This diff is collapsed.
Click to expand it.
playbooks/roles/appneta/tasks/main.yml
View file @
bb6875ed
...
...
@@ -38,19 +38,6 @@
create
:
yes
when
:
not USE_STATIC_CONFIG
-
name
:
set facts according to static config
set_fact
:
apt_server
:
"
apt-static.appneta.com"
config_server
:
"
config-static.appneta.com"
when
:
USE_STATIC_CONFIG
-
name
:
install certificates
apt
:
name
:
ca-certificates
state
:
latest
force
:
yes
when
:
not skip_certs
-
name
:
create appneta sources.list
apt_repository
:
repo
:
"
{{
appneta_apt_repo
}}"
...
...
@@ -68,9 +55,9 @@
create
:
yes
-
name
:
install common library and headers
apt
:
>
pkg={{ item }}
force
=
yes
apt
:
name
:
"
{{
item
}}"
force
:
yes
with_items
:
appneta_debian_pkgs
-
name
:
install appneta-sequencer
...
...
@@ -80,42 +67,16 @@
force
:
yes
when
:
install_sequencer
-
name
:
S
tart appneta-sequencer
-
name
:
s
tart appneta-sequencer
service
:
name
:
appneta-sequencer
state
:
started
when
:
install_sequencer
#- name: Install nginx agent
# apt:
# name: nginx
# state: present
#
#- name: Install nginx light and nginx extras
# apt: pkg={{ item }} state=present
# notify: restart nginx
# with_items: nginx_extra_pkgs
#
#- name: Install oboe
# pip:
# name: oboe
# state: present
#
#- name: Add greenlet instrumentation
# pip:
# extra_args: '-i https://pypi.appneta.com'
# name: greenlet
# version: 0.4.5-oboe1
# state: present
#
#- name: Add tornado instrumentation
# pip:
# extra_args: '-i https://pypi.appneta.com'
# name: tornado
# version: 2.3-oboe3
# state: present
#
#- name: Add ruby instrumentaion
# gem:
# name: traceview
# state: present
-
name
:
install oboe
pip
:
name
:
oboe
virtualenv
:
"
{{
appneta_venv_dir
}}r"
virtualenv_command
:
virtualenv
state
:
present
sudo_user
:
"
{{
appneta_user
}}"
This diff is collapsed.
Click to expand it.
playbooks/roles/edxapp/templates/cms_gunicorn.py.j2
View file @
bb6875ed
...
...
@@ -4,6 +4,7 @@ gunicorn configuration file: http://docs.gunicorn.org/en/develop/configure.html
{{ ansible_managed }}
"""
import multiprocessing
import oboeware.djangoware
preload_app = True
timeout = 300
...
...
This diff is collapsed.
Click to expand it.
playbooks/roles/edxapp/templates/lms_gunicorn.py.j2
View file @
bb6875ed
...
...
@@ -4,6 +4,7 @@ gunicorn configuration file: http://docs.gunicorn.org/en/develop/configure.html
{{ ansible_managed }}
"""
import multiprocessing
import oboeware.djangoware
preload_app = True
timeout = 300
...
...
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