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
cbf7bb9f
Commit
cbf7bb9f
authored
Feb 05, 2016
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add lifecycle tags to browsermob-proxy and harprofiler roles
parent
cbd073dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
0 deletions
+43
-0
playbooks/roles/browsermob-proxy/tasks/main.yml
+19
-0
playbooks/roles/harprofiler/tasks/main.yml
+24
-0
No files found.
playbooks/roles/browsermob-proxy/tasks/main.yml
View file @
cbf7bb9f
...
...
@@ -5,31 +5,50 @@
url
:
"
{{
browsermob_proxy_url
}}"
dest
:
"
/var/tmp/browsermob-proxy-{{
browsermob_proxy_version
}}.zip"
register
:
download_browsermob_proxy
tags
:
-
install
-
install:system-requirements
-
name
:
unzip into /var/tmp/
shell
:
unzip
:
"
/var/tmp/browsermob-proxy-{{
browsermob_proxy_version
}}.zip"
chdir
:
/var/tmp
when
:
download_browsermob_proxy.changed
tags
:
-
install
-
install:system-requirements
-
name
:
move to /etc/browsermob-proxy/
shell
:
"
mv
/var/tmp/browsermob-proxy-{{
browsermob_proxy_version
}}
/etc/browsermob-proxy"
when
:
download_browsermob_proxy.changed
tags
:
-
install
-
install:system-requirements
-
name
:
change permissions of main script
file
:
path
:
/etc/browsermob-proxy/bin/browsermob-proxy
mode
:
0755
when
:
download_browsermob_proxy.changed
tags
:
-
install
-
install:system-requirements
-
name
:
add wrapper script /usr/local/bin/browsermob-proxy
copy
:
src
:
browsermob-proxy
dest
:
/usr/local/bin/browsermob-proxy
when
:
download_browsermob_proxy.changed
tags
:
-
install
-
install:system-requirements
-
name
:
change permissions of wrapper script
file
:
path
:
/usr/local/bin/browsermob-proxy
mode
:
0755
when
:
download_browsermob_proxy.changed
tags
:
-
install
-
install:system-requirements
playbooks/roles/harprofiler/tasks/main.yml
View file @
cbf7bb9f
...
...
@@ -6,6 +6,9 @@
createhome
:
no
home
:
"
{{
harprofiler_dir
}}"
shell
:
/bin/bash
tags
:
-
install
-
install:base
-
name
:
create harprofiler repo
file
:
...
...
@@ -14,6 +17,9 @@
owner
:
"
{{
harprofiler_user
}}"
group
:
"
{{
common_web_group
}}"
mode
:
0755
tags
:
-
install
-
install:base
-
name
:
check out the harprofiler
git
:
...
...
@@ -22,6 +28,9 @@
version
:
"
{{
harprofiler_version
}}"
accept_hostkey
:
yes
sudo_user
:
"
{{
harprofiler_user
}}"
tags
:
-
install
-
install:code
-
name
:
set bashrc for harprofiler user
template
:
...
...
@@ -29,12 +38,18 @@
dest
:
"
{{
harprofiler_dir
}}/.bashrc"
owner
:
"
{{
harprofiler_user
}}"
mode
:
0755
tags
:
-
install
-
install:configuration
-
name
:
install requirements
pip
:
requirements
:
"
{{
harprofiler_dir
}}/requirements.txt"
virtualenv
:
"
{{
harprofiler_venv_dir
}}"
sudo_user
:
"
{{
harprofiler_user
}}"
tags
:
-
install
-
install:app-requirements
-
name
:
update config file
# harprofiler ships with a default config file. Doing a line-replace for the default
...
...
@@ -44,6 +59,9 @@
regexp
:
"
browsermob_dir"
line
:
"
browsermob_dir:
/usr/local"
state
:
present
tags
:
-
install
-
install:configuration
-
name
:
create validation shell script
template
:
...
...
@@ -52,6 +70,9 @@
dest
:
"
{{
harprofiler_dir
}}/{{
harprofiler_validation_script
}}"
mode
:
0755
sudo_user
:
"
{{
harprofiler_user
}}"
tags
:
-
install
-
install:code
-
name
:
test install
...
...
@@ -59,3 +80,6 @@
args
:
chdir
:
"
{{
harprofiler_dir
}}"
sudo_user
:
"
{{
harprofiler_user
}}"
tags
:
-
test
-
test:unit
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