From 4178a1cddfdc35004060d42ef834dc4af0121482 Mon Sep 17 00:00:00 2001 From: Victoria Martinez de la Cruz Date: Wed, 12 Apr 2017 20:18:32 +0000 Subject: [PATCH] Add k8s tox environment This change adds ansible k8s tox environment Change-Id: Ib8310e134eaa92b6e7f06f7d4515b965d7e4afcd --- tox.ini | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tox.ini b/tox.ini index 14d62dc..844f5ba 100755 --- a/tox.ini +++ b/tox.ini @@ -44,3 +44,13 @@ commands = python setup.py build_sphinx [testenv:releasenotes] commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html + +[testenv:k8s] +deps = + {[testenv:ansible]deps} +setenv = + {[testenv:ansible]setenv} + K8S_DIR = {toxinidir}/workloads/ansible/shade/k8s + ANSIBLE_INVENTORY = {env:K8S_DIR}/hosts + ANSIBLE_CONFIG = {env:K8S_DIR}/ansible.cfg +commands = ansible-playbook -e "action=apply {posargs}" {env:K8S_DIR}/site.yml