mirror of
https://github.com/ansible/awx.git
synced 2026-03-20 10:27:34 -02:30
Add insights service account support to collection
This commit is contained in:
committed by
Chris Meyers
parent
fb12c834eb
commit
ec2966225b
@@ -85,6 +85,8 @@ options:
|
|||||||
- vault_id (the vault identifier; this parameter is only valid if C(kind) is specified as C(vault).)
|
- vault_id (the vault identifier; this parameter is only valid if C(kind) is specified as C(vault).)
|
||||||
- ssh_key_unlock (unlock password for ssh_key; use "ASK" and launch job to be prompted)
|
- ssh_key_unlock (unlock password for ssh_key; use "ASK" and launch job to be prompted)
|
||||||
- gpg_public_key (GPG Public Key used for signature validation)
|
- gpg_public_key (GPG Public Key used for signature validation)
|
||||||
|
- client_id (client ID insights type service account)
|
||||||
|
- client_secret (client secret insights type service account)
|
||||||
type: dict
|
type: dict
|
||||||
update_secrets:
|
update_secrets:
|
||||||
description:
|
description:
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
openstack_cred_name1: "AWX-Collection-tests-credential-openstack-cred1-{{ test_id }}"
|
openstack_cred_name1: "AWX-Collection-tests-credential-openstack-cred1-{{ test_id }}"
|
||||||
rhv_cred_name1: "AWX-Collection-tests-credential-rhv-cred1-{{ test_id }}"
|
rhv_cred_name1: "AWX-Collection-tests-credential-rhv-cred1-{{ test_id }}"
|
||||||
insights_cred_name1: "AWX-Collection-tests-credential-insights-cred1-{{ test_id }}"
|
insights_cred_name1: "AWX-Collection-tests-credential-insights-cred1-{{ test_id }}"
|
||||||
|
insights_cred_name2: "AWX-Collection-tests-credential-insights-cred2-{{ test_id }}"
|
||||||
tower_cred_name1: "AWX-Collection-tests-credential-tower-cred1-{{ test_id }}"
|
tower_cred_name1: "AWX-Collection-tests-credential-tower-cred1-{{ test_id }}"
|
||||||
|
|
||||||
- name: create a tempdir for an SSH key
|
- name: create a tempdir for an SSH key
|
||||||
@@ -694,6 +695,33 @@
|
|||||||
that:
|
that:
|
||||||
- "result is changed"
|
- "result is changed"
|
||||||
|
|
||||||
|
- name: Create a valid Insights token credential
|
||||||
|
credential:
|
||||||
|
name: "{{ insights_cred_name2 }}"
|
||||||
|
organization: Default
|
||||||
|
state: present
|
||||||
|
credential_type: Insights
|
||||||
|
inputs:
|
||||||
|
client_id: joe
|
||||||
|
client_secret: secret
|
||||||
|
register: result
|
||||||
|
|
||||||
|
- assert:
|
||||||
|
that:
|
||||||
|
- "result is changed"
|
||||||
|
|
||||||
|
- name: Delete an Insights token credential
|
||||||
|
credential:
|
||||||
|
name: "{{ insights_cred_name2 }}"
|
||||||
|
organization: Default
|
||||||
|
state: absent
|
||||||
|
credential_type: Insights
|
||||||
|
register: result
|
||||||
|
|
||||||
|
- assert:
|
||||||
|
that:
|
||||||
|
- "result is changed"
|
||||||
|
|
||||||
- name: Create a valid Tower-to-Tower credential
|
- name: Create a valid Tower-to-Tower credential
|
||||||
credential:
|
credential:
|
||||||
name: "{{ tower_cred_name1 }}"
|
name: "{{ tower_cred_name1 }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user