Regen modules. Add tests.

This commit is contained in:
Chris Houseknecht
2017-10-11 13:44:58 -04:00
parent c1ba7bb979
commit aa8fe4ea23
187 changed files with 390 additions and 217 deletions

View File

@@ -1,3 +1,4 @@
[defaults]
roles_path=../..
nocows=1
command_warnings = False
system_warnings = False
deprecation_warnings = False

View File

@@ -1 +0,0 @@
localhost ansible_connection=local

View File

@@ -4,6 +4,9 @@
display_name: Resource Defn
description: Load resources
debug: no
kubeconfig: '{{ os_kubeconfig }}'
host: '{{ os_host }}'
verify_ssl: '{{ os_verify_ssl }}'
register: create_project
- debug: var=create_project
@@ -37,6 +40,9 @@
sessionAffinity: None
status:
loadBalancer: {}
kubeconfig: '{{ os_kubeconfig }}'
host: '{{ os_host }}'
verify_ssl: '{{ os_verify_ssl }}'
register: create_service
- debug: var=create_service
@@ -46,6 +52,9 @@
state: present
debug: yes
src: "{{ role_path }}/files/deployment.yml"
kubeconfig: '{{ os_kubeconfig }}'
host: '{{ os_host }}'
verify_ssl: '{{ os_verify_ssl }}'
register: deployment_create
- debug: var=deployment_create

View File

@@ -1 +0,0 @@
localhost

View File

@@ -1,23 +1,13 @@
---
- hosts: all
- name: Load the modules
hosts: localhost
connection: local
gather_facts: no
vars:
kubeconfig: ../konfig.json
host: localhost:8443
verify_ssl: False
os_kubeconfig: konfig.json
os_host: localhost:8443
os_verify_ssl: False
roles:
- role: ansible-kubernetes-modules
install_python_requirements: no
- role: hello-world
os_kubeconfig: '{{ kubeconfig }}'
os_host: '{{ host }}'
os_verify_ssl: '{{ verify_ssl }}'
# - role: hello-templates
# kubeconfig: '{{ kubeconfig }}'
# host: '{{ host }}'
# verify_ssl: '{{ verify_ssl }}'
- role: hello-world
- role: hello-templates