Add tox environement for ansible workloads

This commits adds tox environments for the lampstack ansible workload.
It expects to get the env and the password for it as tox posargs.

Change-Id: Id57c8a557bf555189a70bee179e15dcceb1b11df
This commit is contained in:
Daniel Mellado 2016-10-06 16:12:15 +02:00
parent b3975d45ff
commit ebfddb101d
2 changed files with 92 additions and 0 deletions

68
ansible_requirements.txt Normal file
View File

@ -0,0 +1,68 @@
ansible==2.1.2.0
appdirs==1.4.0
Babel==2.3.4
cffi==1.8.3
cliff==2.2.0
cmd2==0.6.9
cryptography==1.5.2
debtcollector==1.8.0
decorator==4.0.10
dogpile.cache==0.6.2
enum34==1.1.6
funcsigs==1.0.2
functools32==3.2.3.post2
futures==3.0.5
idna==2.1
ipaddress==1.0.17
iso8601==0.1.11
Jinja2==2.8
jsonpatch==1.14
jsonpointer==1.10
jsonschema==2.5.1
keystoneauth1==2.12.1
MarkupSafe==0.23
monotonic==1.2
msgpack-python==0.4.8
munch==2.0.4
netaddr==0.7.18
netifaces==0.10.5
openstacksdk==0.9.8
os-client-config==1.21.1
osc-lib==1.1.0
oslo.config==3.17.0
oslo.i18n==3.9.0
oslo.serialization==2.13.0
oslo.utils==3.16.0
paramiko==2.0.2
pbr==1.10.0
positional==1.1.1
prettytable==0.7.2
pyasn1==0.1.9
pycparser==2.14
pycrypto==2.6.1
pyparsing==2.1.9
python-cinderclient==1.9.0
python-designateclient==2.3.0
python-glanceclient==2.5.0
python-heatclient==1.5.0
python-ironicclient==1.7.0
python-keystoneclient==3.5.0
python-magnumclient==2.3.0
python-mistralclient==2.1.1
python-neutronclient==6.0.0
python-novaclient==6.0.0
python-openstackclient==3.2.0
python-swiftclient==3.1.0
python-troveclient==2.5.0
pytz==2016.7
PyYAML==3.12
requests==2.11.1
requestsexceptions==1.1.3
rfc3986==0.4.1
shade>=1.9.0,<=1.12.1
simplejson==3.8.2
six==1.10.0
stevedore==1.17.1
unicodecsv==0.14.1
warlock==1.2.0
wrapt==1.10.8

24
tox.ini Normal file
View File

@ -0,0 +1,24 @@
[tox]
envlist = py27
minversion = 2.3.1
skip_install = True
skipsdist = True
[testenv]
sitepackages = False
setenv =
VIRTUAL_ENV={envdir}
ANSIBLE_HOST_KEY_CHECKING = False
ANSIBLE_SSH_CONTROL_PATH = /tmp/%%h-%%r
deps =
setuptools
-r{toxinidir}/ansible_requirements.txt
[testenv:lampstack]
setenv =
LAMPSTACK_DIR = {toxinidir}/ansible/lampstack
ANSIBLE_CONFIG = {env:LAMPSTACK_DIR}/ansible.cfg
ANSIBLE_LOCAL_TEMP = {env:LAMPSTACK_DIR}/.ansible/tmp
ANSIBLE_REMOTE_TEMP = {env:LAMPSTACK_DIR}/.ansible/tmp
ANSIBLE_INVENTORY = {env:LAMPSTACK_DIR}/hosts
commands = ansible-playbook -vvvv -e "action=apply {posargs}" {env:LAMPSTACK_DIR}/site.yml