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
adc2da83
Commit
adc2da83
authored
Feb 05, 2016
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Multiline -> dict cleanup
parent
319fa028
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
25 deletions
+32
-25
playbooks/roles/harprofiler/tasks/main.yml
+32
-25
No files found.
playbooks/roles/harprofiler/tasks/main.yml
View file @
adc2da83
---
---
# Installs the harprofiler
# Installs the harprofiler
-
name
:
create harprofiler user
-
name
:
create harprofiler user
user
:
>
user
:
name
=
"{{ harprofiler_user }}"
name
:
"
{{
harprofiler_user
}}"
createhome
=
no
createhome
:
no
home
={{ harprofiler_dir }}
home
:
"
{{
harprofiler_dir
}}"
shell
=
/bin/bash
shell
:
/bin/bash
-
name
:
create harprofiler repo
-
name
:
create harprofiler repo
file
:
>
file
:
path={{ harprofiler_dir }} state=directory
path
:
"
{{
harprofiler_dir
}}"
owner="{{ harprofiler_user }}" group="{{ common_web_group }}"
state
:
directory
mode=0755
owner
:
"
{{
harprofiler_user
}}"
group
:
"
{{
common_web_group
}}"
mode
:
0755
-
name
:
check out the harprofiler
-
name
:
check out the harprofiler
git
:
>
git
:
dest={{ harprofiler_dir }}
dest
:
"
{{
harprofiler_dir
}}"
repo={{ harprofiler_github_url }} version={{ harprofiler_version }}
repo
:
"
{{
harprofiler_github_url
}}"
accept_hostkey=yes
version
:
"
{{
harprofiler_version
}}"
accept_hostkey
:
yes
sudo_user
:
"
{{
harprofiler_user
}}"
sudo_user
:
"
{{
harprofiler_user
}}"
-
name
:
set bashrc for harprofiler user
-
name
:
set bashrc for harprofiler user
template
:
>
template
:
src=bashrc.j2 dest="{{ harprofiler_dir }}/.bashrc" owner="{{ harprofiler_user }}"
src
:
bashrc.j2
mode=0755
dest
:
"
{{
harprofiler_dir
}}/.bashrc"
owner
:
"
{{
harprofiler_user
}}"
mode
:
0755
-
name
:
install requirements
-
name
:
install requirements
pip
:
>
pip
:
requirements="{{ harprofiler_dir }}/requirements.txt" virtualenv="{{ harprofiler_venv_dir }}"
requirements
:
"
{{
harprofiler_dir
}}/requirements.txt"
virtualenv
:
"
{{
harprofiler_venv_dir
}}"
sudo_user
:
"
{{
harprofiler_user
}}"
sudo_user
:
"
{{
harprofiler_user
}}"
-
name
:
update config file
-
name
:
update config file
# harprofiler ships with a default config file. Doing a line-replace for the default
# harprofiler ships with a default config file. Doing a line-replace for the default
# configuration that does not match what this machine will have
# configuration that does not match what this machine will have
lineinfile
:
>
lineinfile
:
dest
={{ harprofiler_dir }}/config.yaml
dest
:
"
{{
harprofiler_dir
}}/config.yaml"
regexp
=
"browsermob_dir"
regexp
:
"
browsermob_dir"
line
=
"browsermob_dir: /usr/local"
line
:
"
browsermob_dir:
/usr/local"
state
=
present
state
:
present
-
name
:
create validation shell script
-
name
:
create validation shell script
template
:
template
:
...
@@ -49,6 +55,7 @@
...
@@ -49,6 +55,7 @@
-
name
:
test install
-
name
:
test install
shell
:
>
command
:
"
./{{
harprofiler_validation_script
}}"
./{{ harprofiler_validation_script }} chdir={{ harprofiler_dir }}
args
:
chdir
:
"
{{
harprofiler_dir
}}"
sudo_user
:
"
{{
harprofiler_user
}}"
sudo_user
:
"
{{
harprofiler_user
}}"
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