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
9131c9ce
Commit
9131c9ce
authored
Nov 03, 2014
by
Ben Patterson
Committed by
Edward Zarecor
Nov 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Operationalize harprofiler.
parent
4d4a5a37
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
59 additions
and
0 deletions
+59
-0
playbooks/roles/harprofiler/defaults/main.yml
+12
-0
playbooks/roles/harprofiler/meta/main.yml
+6
-0
playbooks/roles/harprofiler/tasks/main.yml
+40
-0
playbooks/roles/harprofiler/templates/bashrc.j2
+1
-0
No files found.
playbooks/roles/harprofiler/defaults/main.yml
0 → 100644
View file @
9131c9ce
---
#
# edX Configuration
#
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
harprofiler_role_name
:
harprofiler
harprofiler_user
:
"
harprofiler"
harprofiler_github_url
:
https://github.com/cgoldberg/harprofiler
harprofiler_version
:
2958a910cc0c33967f7d7faf4519fa03271fdaf1
harprofiler_dir
:
/edx/app/harprofiler
playbooks/roles/harprofiler/meta/main.yml
0 → 100644
View file @
9131c9ce
---
dependencies
:
-
common
-
browsers
-
oraclejdk
-
browsermob-proxy
playbooks/roles/harprofiler/tasks/main.yml
0 → 100644
View file @
9131c9ce
---
# Installs the harprofiler
-
name
:
create harprofiler user
user
:
>
name="{{ harprofiler_user }}"
createhome=no
home={{ harprofiler_dir }}
shell=/bin/bash
-
name
:
create harprofiler repo
file
:
>
path={{ harprofiler_dir }} state=directory
owner="{{ harprofiler_user }}" group="{{ common_web_group }}"
mode=0755
-
name
:
check out the harprofiler
git
:
>
dest={{ harprofiler_dir }}
repo={{ harprofiler_github_url }} version={{ harprofiler_version }}
accept_hostkey=yes
sudo_user
:
"
{{
harprofiler_user
}}"
-
name
:
set bashrc for harprofiler user
template
:
>
src=bashrc.j2 dest="{{ harprofiler_dir }}/.bashrc" owner="{{ harprofiler_user }}"
mode=0755
-
name
:
install requirements
pip
:
>
requirements="{{ harprofiler_dir }}/requirements.txt" virtualenv="{{ harprofiler_dir }}/venv"
sudo_user
:
"
{{
harprofiler_user
}}"
-
name
:
update config file
# harprofiler ships with a default config file. Doing a line-replace for the default
# configuration that does not match what this machine will have
lineinfile
:
>
dest={{ harprofiler_dir }}/config.yaml
regexp="browsermob_dir"
line="browsermob_dir: /usr/local"
state=present
playbooks/roles/harprofiler/templates/bashrc.j2
0 → 100644
View file @
9131c9ce
export DISPLAY=:1
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