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
97e83dd4
Unverified
Commit
97e83dd4
authored
Jul 04, 2016
by
arbabnazar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
using proper YAML syntax
parent
8e202d61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
26 deletions
+28
-26
playbooks/roles/locust/tasks/main.yml
+28
-26
No files found.
playbooks/roles/locust/tasks/main.yml
View file @
97e83dd4
...
...
@@ -30,7 +30,7 @@
# roles:
# - locust
-
name
:
i
nstall system packages
-
name
:
I
nstall system packages
apt
:
pkg
:
"
{{
item
}}"
state
:
"
present"
...
...
@@ -38,42 +38,44 @@
cache_valid_time
:
3600
with_items
:
locust_debian_pkgs
-
name
:
i
nstall application requirements
pip
:
>
requirements
=
"{{ locust_requirements_base }}/{{ item }}"
virtualenv
=
"{{ locust_home }}/venvs/{{ locust_service_name }}"
state
=
present
-
name
:
I
nstall application requirements
pip
:
requirements
:
"
{{
locust_requirements_base
}}/{{
item
}}"
virtualenv
:
"
{{
locust_home
}}/venvs/{{
locust_service_name
}}"
state
:
present
become_user
:
"
{{
locust_user
}}"
with_items
:
locust_requirements
with_items
:
"
{{
locust_requirements
}}"
-
name
:
write supervisord config
template
:
>
src=edx/app/supervisor/conf.d.available/locust.conf.j2
dest="{{ supervisor_available_dir }}/{{ locust_service_name }}.conf"
owner={{ supervisor_user }} group={{ common_web_user }} mode=0644
-
name
:
Write supervisord config
template
:
src
:
"
edx/app/supervisor/conf.d.available/locust.conf.j2"
dest
:
"
{{
supervisor_available_dir
}}/{{
locust_service_name
}}.conf"
owner
:
"
{{
supervisor_user
}}"
group
:
"
{{
common_web_user
}}"
mode
:
"
0644"
-
name
:
e
nable supervisor script
file
:
>
src
={{ supervisor_available_dir }}/{{ locust_service_name }}.conf
dest
={{ supervisor_cfg_dir }}/{{ locust_service_name }}.conf
state
=
link
force
=
yes
-
name
:
E
nable supervisor script
file
:
src
:
"
{{
supervisor_available_dir
}}/{{
locust_service_name
}}.conf"
dest
:
"
{{
supervisor_cfg_dir
}}/{{
locust_service_name
}}.conf"
state
:
link
force
:
yes
when
:
not disable_edx_services
-
name
:
u
pdate supervisor configuration
-
name
:
U
pdate supervisor configuration
shell
:
"
{{
supervisor_ctl
}}
-c
{{
supervisor_cfg
}}
update"
when
:
not disable_edx_services
-
name
:
r
estart the applicaton
supervisorctl
:
>
state=restarted
s
upervisorctl_path={{ supervisor_ctl }}
config={{ supervisor_cfg }}
name={{ locust_service_name }}
-
name
:
R
estart the applicaton
supervisorctl
:
name
:
"
{{
locust_service_name
}}"
s
tate
:
restarted
supervisorctl_path
:
"
{{
supervisor_ctl
}}"
config
:
"
{{
supervisor_cfg
}}"
when
:
not disable_edx_services
become_user
:
"
{{
supervisor_service_user
}}"
-
name
:
i
ncrease file descriptor limit of the system (Session Logout and Login would be required)
-
name
:
I
ncrease file descriptor limit of the system (Session Logout and Login would be required)
lineinfile
:
dest
:
"
{{
ulimit_conf_file
}}"
line
:
"
{{
item.domain
}}
{{
item.type
}}
{{
item.item
}}
{{
item.value
}}"
...
...
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