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
8806f9d6
Commit
8806f9d6
authored
Nov 04, 2014
by
Ben Patterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move venv to subdir and activate it.
parent
5b427026
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletions
+11
-1
playbooks/roles/harprofiler/defaults/main.yml
+1
-0
playbooks/roles/harprofiler/tasks/main.yml
+8
-1
playbooks/roles/harprofiler/templates/bashrc.j2
+2
-0
No files found.
playbooks/roles/harprofiler/defaults/main.yml
View file @
8806f9d6
...
...
@@ -10,3 +10,4 @@ harprofiler_user: "harprofiler"
harprofiler_github_url
:
https://github.com/cgoldberg/harprofiler
harprofiler_version
:
2958a910cc0c33967f7d7faf4519fa03271fdaf1
harprofiler_dir
:
/edx/app/harprofiler
harprofiler_venv_dir
:
"
{{
harprofiler_dir
}}/venvs/harprofiler"
playbooks/roles/harprofiler/tasks/main.yml
View file @
8806f9d6
...
...
@@ -27,7 +27,7 @@
-
name
:
install requirements
pip
:
>
requirements="{{ harprofiler_dir }}/requirements.txt" virtualenv="{{ harprofiler_
dir }}/venv
"
requirements="{{ harprofiler_dir }}/requirements.txt" virtualenv="{{ harprofiler_
venv_dir }}
"
sudo_user
:
"
{{
harprofiler_user
}}"
-
name
:
update config file
...
...
@@ -38,3 +38,10 @@
regexp="browsermob_dir"
line="browsermob_dir: /usr/local"
state=present
-
name
:
verify harprofiler works
shell
:
>
python harprofiler.py
chdir="{{ harprofiler_dir }}"
executable=/bin/bash
sudo_user
:
"
{{
harprofiler_user
}}"
playbooks/roles/harprofiler/templates/bashrc.j2
View file @
8806f9d6
export DISPLAY=:1
source {{ harprofiler_venv_dir }}/bin/activate
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