Split profile tox env
Creates a new tox env called profile in order for profiling not to be mandatory for each workload run. Change-Id: I699551f1d50776499ad67440bc0a6b71bd8101ef
This commit is contained in:
parent
6a073cfd9c
commit
f426660f75
|
@ -1,4 +1,3 @@
|
||||||
[defaults]
|
[defaults]
|
||||||
inventory = ./hosts
|
inventory = ./hosts
|
||||||
host_key_checking = False
|
host_key_checking = False
|
||||||
callback_whitelist = profile_tasks
|
|
||||||
|
|
17
tox.ini
17
tox.ini
|
@ -8,17 +8,22 @@ skipsdist = True
|
||||||
sitepackages = False
|
sitepackages = False
|
||||||
setenv =
|
setenv =
|
||||||
VIRTUAL_ENV={envdir}
|
VIRTUAL_ENV={envdir}
|
||||||
|
LAMPSTACK_DIR = {toxinidir}/ansible/lampstack
|
||||||
ANSIBLE_HOST_KEY_CHECKING = False
|
ANSIBLE_HOST_KEY_CHECKING = False
|
||||||
ANSIBLE_SSH_CONTROL_PATH = /tmp/%%h-%%r
|
ANSIBLE_SSH_CONTROL_PATH = /tmp/%%h-%%r
|
||||||
|
ANSIBLE_INVENTORY = {env:LAMPSTACK_DIR}/hosts
|
||||||
|
ANSIBLE_CONFIG = {env:LAMPSTACK_DIR}/ansible.cfg
|
||||||
deps =
|
deps =
|
||||||
setuptools
|
setuptools
|
||||||
-r{toxinidir}/ansible_requirements.txt
|
-r{toxinidir}/ansible_requirements.txt
|
||||||
|
|
||||||
[testenv:lampstack]
|
[testenv:lampstack]
|
||||||
setenv =
|
setenv =
|
||||||
LAMPSTACK_DIR = {toxinidir}/ansible/lampstack
|
{[testenv]setenv}
|
||||||
ANSIBLE_CONFIG = {env:LAMPSTACK_DIR}/ansible.cfg
|
commands = ansible-playbook -vvv -e "action=apply {posargs}" {env:LAMPSTACK_DIR}/site.yml
|
||||||
ANSIBLE_LOCAL_TEMP = {env:LAMPSTACK_DIR}/.ansible/tmp
|
|
||||||
ANSIBLE_REMOTE_TEMP = {env:LAMPSTACK_DIR}/.ansible/tmp
|
[testenv:profile]
|
||||||
ANSIBLE_INVENTORY = {env:LAMPSTACK_DIR}/hosts
|
setenv =
|
||||||
commands = ansible-playbook -vvvv -e "action=apply {posargs}" {env:LAMPSTACK_DIR}/site.yml
|
{[testenv]setenv}
|
||||||
|
ANSIBLE_CALLBACK_WHITELIST = profile_tasks
|
||||||
|
commands = ansible-playbook -vvv -e "action=apply {posargs}" {env:LAMPSTACK_DIR}/site.yml
|
||||||
|
|
Loading…
Reference in New Issue