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
a9660c48
Commit
a9660c48
authored
Apr 14, 2016
by
Bilal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addressing Ed's comments
parent
bb6875ed
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
6 deletions
+15
-6
playbooks/edx-east/appneta.yml
+4
-0
playbooks/roles/appneta/defaults/main.yml
+1
-1
playbooks/roles/appneta/meta/main.yml
+1
-3
playbooks/roles/appneta/tasks/main.yml
+3
-2
playbooks/roles/edxapp/defaults/main.yml
+2
-0
playbooks/roles/edxapp/templates/cms_gunicorn.py.j2
+2
-0
playbooks/roles/edxapp/templates/lms_gunicorn.py.j2
+2
-0
No files found.
playbooks/edx-east/appneta.yml
View file @
a9660c48
# When running, do pass ACCESS_KEY for appneta account as an argument to playbook e.g.
# ansible-playbook appneta.yml -i "localhost," --extra-vars "ACCESS_KEY=xxx-xx-xx"
-
name
:
Deploy appneta
hosts
:
all
sudo
:
True
gather_facts
:
True
vars
:
EDXAPP_USE_APPNETA
:
true
NGINX_APT_REPO
:
"
{{
appneta_apt_repo
}}"
roles
:
-
appneta
-
edxapp
-
nginx
playbooks/roles/appneta/defaults/main.yml
View file @
a9660c48
...
...
@@ -22,7 +22,7 @@ USE_STATIC_CONFIG: false
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
"
ACCESS_KEY
:
"
"
install_sequencer
:
true
appneta_apt_repo
:
"
deb
http://{{
apt_server
}}/{{
ACCESS_KEY
}}
{{
ansible_distribution_release
}}
main"
#
...
...
playbooks/roles/appneta/meta/main.yml
View file @
a9660c48
...
...
@@ -20,10 +20,8 @@
# }
dependencies
:
-
common
-
supervisor
-
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
}}"
playbooks/roles/appneta/tasks/main.yml
View file @
a9660c48
...
...
@@ -71,12 +71,13 @@
service
:
name
:
appneta-sequencer
state
:
started
enabled
:
yes
when
:
install_sequencer
-
name
:
install oboe
pip
:
name
:
oboe
virtualenv
:
"
{{
appneta_venv_dir
}}r
"
virtualenv
:
"
{{
edxapp_venv_dir
}}
"
virtualenv_command
:
virtualenv
state
:
present
sudo_user
:
"
{{
appneta
_user
}}"
sudo_user
:
"
{{
edxapp
_user
}}"
playbooks/roles/edxapp/defaults/main.yml
View file @
a9660c48
...
...
@@ -312,6 +312,8 @@ EDXAPP_PYTHON_SANDBOX: true
# it puts the sandbox in 'complain' mode, for reporting but not enforcement
EDXAPP_SANDBOX_ENFORCE
:
true
# whether to use appneta or not
EDXAPP_USE_APPNETA
:
false
# Supply authorized keys used for remote management via the user
# role.
EDXAPP_AUTOMATOR_NAME
:
automator
...
...
playbooks/roles/edxapp/templates/cms_gunicorn.py.j2
View file @
a9660c48
...
...
@@ -4,7 +4,9 @@ gunicorn configuration file: http://docs.gunicorn.org/en/develop/configure.html
{{ ansible_managed }}
"""
import multiprocessing
{% if EDXAPP_USE_APPNETA -%}
import oboeware.djangoware
{% endif -%}
preload_app = True
timeout = 300
...
...
playbooks/roles/edxapp/templates/lms_gunicorn.py.j2
View file @
a9660c48
...
...
@@ -4,7 +4,9 @@ gunicorn configuration file: http://docs.gunicorn.org/en/develop/configure.html
{{ ansible_managed }}
"""
import multiprocessing
{% if EDXAPP_USE_APPNETA -%}
import oboeware.djangoware
{% endif -%}
preload_app = True
timeout = 300
...
...
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