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
2c90f0a6
Commit
2c90f0a6
authored
May 13, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sudo fixes
parent
19f2f2ec
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
43 deletions
+8
-43
playbooks/roles/common/tasks/create_users.yml
+1
-0
playbooks/roles/common/tasks/edx_logging_base.yml
+6
-1
playbooks/roles/common/tasks/main.yml.orig
+0
-42
playbooks/roles/common/tasks/software_update.yml
+1
-0
No files found.
playbooks/roles/common/tasks/create_users.yml
View file @
2c90f0a6
...
...
@@ -49,6 +49,7 @@
-
name
:
Group adm passwordless sudo
copy
:
content="%adm ALL=(ALL) NOPASSWD:ALL" dest=/etc/sudoers.d/adm-group owner=root group=root mode=0440
sudo
:
True
tags
:
-
users
-
admin_users
...
...
playbooks/roles/common/tasks/edx_logging_base.yml
View file @
2c90f0a6
...
...
@@ -2,25 +2,30 @@
-
name
:
Install rsyslog configuration for edX
template
:
dest=/etc/rsyslog.d/99-edx.conf src=edx_rsyslog.j2 owner=root group=root mode=644
notify
:
restart rsyslogd
sudo
:
True
tags
:
-
logging
-
name
:
Install logrotate configuration for edX
template
:
dest=/etc/logrotate.d/edx-services src=edx_logrotate.j2 owner=root group=root mode=644
sudo
:
True
tags
:
-
logging
-
name
:
Touch tracking file into existence
command
:
touch -a {{log_base_dir}}/tracking.log creates={{log_base_dir}}/tracking.log
command
:
touch -a {{log_base_dir}}/tracking.log creates={{log_base_dir}}/tracking.log
sudo
:
True
tags
:
-
logging
-
name
:
Set permissions on tracking file
file
:
path={{log_base_dir}}/tracking.log owner=syslog group=adm mode=750
sudo
:
True
tags
:
-
logging
-
name
:
Install logrotate configuration for tracking file
template
:
dest=/etc/logrotate.d/tracking.log src=edx_logrotate_tracking_log.j2 owner=root group=root mode=644
sudo
:
True
tags
:
-
logging
playbooks/roles/common/tasks/main.yml.orig
deleted
100644 → 0
View file @
19f2f2ec
---
- include: create_users.yml
- name: Create application root
# In the future consider making group edx r/t adm
file: path=$app_base_dir state=directory owner=root group=adm mode=2775
tags:
- pre_install
- name: Create log directory
file: path=/mnt/logs state=directory mode=2770 group=adm owner=root
tags:
- pre_install
- name: Create aliases to the log directory
file: state=link src=/mnt/logs path=$app_base_dir/log
tags:
- pre_install
- name: Touch the edx log file into place
command: touch -a /mnt/logs/edx.log
tags:
- pre_install
- name: Update apt cache
apt: update_cache=yes
tags:
- pre_install
- include: create_venv.yml
- name: Install role-independent useful system packages
apt: pkg={{item}} install_recommends=yes state=present
with_items:
- ack-grep
- lynx-cur
- mosh
<<<<<<< HEAD
- tmux
sudo: True
=======
- most
- screen
tags:
- pre_install
>>>>>>> origin/master
playbooks/roles/common/tasks/software_update.yml
View file @
2c90f0a6
---
-
name
:
edx-update.sh, manual lms/cms update script
copy
:
src=roles/common/files/edx-update.sh dest=/usr/local/bin/edx-update.sh owner=ubuntu group=adm mode=0775
sudo
:
True
tags
:
-
update
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