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
a2f001ac
Commit
a2f001ac
authored
May 08, 2013
by
Joe Blaylock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create in_production role for live site final jobs
* Removes HTTP basic auth
parent
dee88625
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
2 deletions
+27
-2
playbooks/edxapp_prod.yml
+2
-0
playbooks/roles/in_production/tasks/main.yml
+18
-0
playbooks/roles/nginx/tasks/main.yml
+7
-2
No files found.
playbooks/edxapp_prod.yml
View file @
a2f001ac
...
@@ -10,3 +10,5 @@
...
@@ -10,3 +10,5 @@
-
lms
-
lms
-
ruby
-
ruby
-
npm
-
npm
# run this role last
-
in_production
playbooks/roles/in_production/tasks/main.yml
0 → 100644
View file @
a2f001ac
# requires:
# - group_vars/all
# - common/tasks/main.yml
# - nginx/tasks/main.yml
# - lms/tasks/main.yml
# - ruby/tasks/main.yml
# - npm/tasks/main.yml
---
-
name
:
Make sure LMS is running
service
:
name=lms state=started
tags
:
-
production
-
name
:
Disable HTTP Basic Auth on site
file
:
path=/etc/nginx/sites-enabled/basic-auth state=absent
notify
:
restart nginx
tags
:
-
production
playbooks/roles/nginx/tasks/main.yml
View file @
a2f001ac
...
@@ -8,12 +8,17 @@
...
@@ -8,12 +8,17 @@
tags
:
tags
:
-
nginx
-
nginx
# removing default link
# removing default link
-
name
:
Removing default nginx config
-
name
:
Removing default nginx config
(enabled)
sudo
:
True
sudo
:
True
file
:
path=/etc/nginx/sites-
available
/default state=absent
file
:
path=/etc/nginx/sites-
enabled
/default state=absent
notify
:
restart nginx
notify
:
restart nginx
tags
:
tags
:
-
nginx
-
nginx
-
name
:
Removing default nginx config (available)
sudo
:
True
file
:
path=/etc/nginx/sites-available/default state=absent
tags
:
-
nginx
# Standard configuration that is common across all roles
# Standard configuration that is common across all roles
# Default values for these variables are set in group_vars/all
# Default values for these variables are set in group_vars/all
# Note: remove spaces in {{..}}, otherwise you will get a template parsing error.
# Note: remove spaces in {{..}}, otherwise you will get a template parsing error.
...
...
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