ACI: Add missing examples to module docs (#36417)

This PR includes:
- A cleanup of documentation examples for ACI modules
- A small fix in aci_rest integration test
This commit is contained in:
Dag Wieers 2018-02-20 03:27:17 +01:00 committed by GitHub
commit 6534e6a450
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 566 additions and 135 deletions

View file

@ -65,8 +65,8 @@ notes:
EXAMPLES = r'''
- name: Add a tenant using certifcate authentication
aci_rest:
host: '{{ inventory_hostname }}'
username: '{{ aci_username }}'
host: apic
username: admin
private_key: pki/admin.key
method: post
path: /api/mo/uni.xml
@ -75,8 +75,8 @@ EXAMPLES = r'''
- name: Add a tenant using inline YAML
aci_rest:
host: '{{ inventory_hostname }}'
username: '{{ aci_username }}'
host: apic
username: admin
private_key: pki/admin.key
validate_certs: no
path: /api/mo/uni.json
@ -90,8 +90,8 @@ EXAMPLES = r'''
- name: Add a tenant using a JSON string
aci_rest:
host: '{{ inventory_hostname }}'
username: '{{ aci_username }}'
host: apic
username: admin
private_key: pki/admin.key
validate_certs: no
path: /api/mo/uni.json
@ -109,8 +109,8 @@ EXAMPLES = r'''
- name: Add a tenant using an XML string
aci_rest:
host: '{{ inventory_hostname }}'
username: '{{ aci_username }}'
host: apic
username: admin
private_key: pki/{{ aci_username}}.key
validate_certs: no
path: /api/mo/uni.xml
@ -120,17 +120,17 @@ EXAMPLES = r'''
- name: Get tenants using password authentication
aci_rest:
host: '{{ inventory_hostname }}'
username: '{{ aci_username }}'
password: '{{ aci_password }}'
host: apic
username: admin
password: SomeSecretPassword
method: get
path: /api/node/class/fvTenant.json
delegate_to: localhost
- name: Configure contracts
aci_rest:
host: '{{ inventory_hostname }}'
username: '{{ aci_username }}'
host: apic
username: admin
private_key: pki/admin.key
method: post
path: /api/mo/uni.xml
@ -139,8 +139,8 @@ EXAMPLES = r'''
- name: Register leaves and spines
aci_rest:
host: '{{ inventory_hostname }}'
username: '{{ aci_username }}'
host: apic
username: admin
private_key: pki/admin.key
validate_certs: no
method: post
@ -155,8 +155,8 @@ EXAMPLES = r'''
- name: Wait for all controllers to become ready
aci_rest:
host: '{{ inventory_hostname }}'
username: '{{ aci_username }}'
host: apic
username: admin
private_key: pki/admin.key
validate_certs: no
path: /api/node/class/topSystem.json?query-target-filter=eq(topSystem.role,"controller")