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
edx
configuration
Commits
c30ef5a7
Commit
c30ef5a7
authored
Oct 11, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding logrotate handler, removing nginx_site
parent
689fe8df
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
3 deletions
+40
-3
playbooks/edx-east/edx_continuous_integration.yml
+9
-1
playbooks/roles/common/handlers/main.yml
+6
-0
playbooks/roles/nginx/tasks/main.yml
+25
-2
No files found.
playbooks/edx-east/edx_continuous_integration.yml
View file @
c30ef5a7
...
...
@@ -8,7 +8,15 @@
openid_workaround
:
True
roles
:
-
common
-
nginx
-
role
:
nginx
nginx_sites
:
-
cms
-
discern
-
lms
-
lms-preview
-
ora
-
xqueue
-
xserver
-
edxlocal
-
edxapp
-
{
role
:
'
rabbitmq'
,
rabbitmq_ip
:
'
127.0.0.1'
}
...
...
playbooks/roles/common/handlers/main.yml
View file @
c30ef5a7
...
...
@@ -2,3 +2,9 @@
-
name
:
common | restart rsyslogd
service
:
name=rsyslog state=restarted
sudo
:
True
-
name
:
common | restart logrotate
service
:
name=logrotate state=restarted
sudo
:
True
playbooks/roles/nginx/tasks/main.yml
View file @
c30ef5a7
...
...
@@ -16,8 +16,31 @@
-
nginx
-
install
# Default configuration that is common across all roles
-
include
:
nginx_site.yml state=link site_name=edx-release
-
name
:
nginx | Creating common nginx configuration
template
:
src={{ item }} dest=/etc/nginx/sites-available/edx-release.j2 owner=root group=root mode=0600
notify
:
nginx | reload nginx
tags
:
-
nginx
-
name
:
nginx | Creating link for common nginx configuration
file
:
src=/etc/nginx/sites-available/edx-release dest=/etc/nginx/sites-enabled/edx-release state=link owner=root group=root
notify
:
nginx | reload nginx
tags
:
-
nginx
-
name
:
nginx | Copying nginx config {{ site_name }}
template
:
src={{ item }} dest=/etc/nginx/sites-available/{{ site_name }} owner=root group=root mode=0600
notify
:
nginx | reload nginx
with_items
:
nginx_sites
tags
:
-
nginx
-
name
:
nginx | Creating nginx config link {{ site_name }}
file
:
src=/etc/nginx/sites-available/{{ site_name }} dest=/etc/nginx/sites-enabled/{{ site_name }} state=link owner=root group=root
notify
:
nginx | reload nginx
with_items
:
nginx_sites
tags
:
-
nginx
-
name
:
nginx | Write out default htpasswd file
copy
:
content={{ nginx_cfg.htpasswd }} dest=/etc/nginx/nginx.htpasswd owner=www-data group=www-data mode=0600
...
...
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