Browse Source

Merge "Add k8s tox environment"

Jenkins 2 years ago
parent
commit
f3eccb7fcc
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      tox.ini

+ 10
- 0
tox.ini View File

@@ -44,3 +44,13 @@ commands = python setup.py build_sphinx
44 44
 [testenv:releasenotes]
45 45
 commands =
46 46
   sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
47
+
48
+[testenv:k8s]
49
+deps =
50
+    {[testenv:ansible]deps}
51
+setenv =
52
+    {[testenv:ansible]setenv}
53
+    K8S_DIR = {toxinidir}/workloads/ansible/shade/k8s
54
+    ANSIBLE_INVENTORY = {env:K8S_DIR}/hosts
55
+    ANSIBLE_CONFIG = {env:K8S_DIR}/ansible.cfg
56
+commands = ansible-playbook -e "action=apply {posargs}" {env:K8S_DIR}/site.yml

Loading…
Cancel
Save