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
dbcb9f03
Commit
dbcb9f03
authored
Jul 10, 2013
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for the sandbox sudoer.
parent
e64aa450
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
playbooks/roles/xserver/tasks/main.yml
+5
-0
playbooks/roles/xserver/templates/99-sandbox.j2
+1
-0
No files found.
playbooks/roles/xserver/tasks/main.yml
View file @
dbcb9f03
...
...
@@ -12,6 +12,11 @@
-
name
:
create sandbox python directory
file
:
path={{ xserver_sandbox_venv_dir }} owner=ubuntu group=adm mode=2775 state=directory
-
name
:
create sandbox sudoers file
template
:
src=99-sandbox.j2 dest=/etc/sudoers.d/99-sandbox owner=root group=root mode=0440
tags
:
-
testit
-
name
:
create sandbox python
command
:
/usr/local/bin/virtualenv {{ xserver_sandbox_venv_dir }} --distribute creates={{ xserver_sandbox_venv_dir }}/bin/activate
...
...
playbooks/roles/xserver/templates/99-sandbox.j2
0 → 100644
View file @
dbcb9f03
www-data ALL=(sandbox) NOPASSWD:{{xserver_sandbox_venv_dir}}/bin/python
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