[RFE] Add RHV Credential to Ansible Automation Inside Ansible Tower 3.2.2 adds the RHV credential to its credential store. We need to mirror this in CFME and Ansible Automation Inside.
https://github.com/ManageIQ/manageiq/pull/17044
https://github.com/ManageIQ/manageiq-providers-ansible_tower/pull/62
*** Bug 1539753 has been marked as a duplicate of this bug. ***
A caveat: CFME/MIQ's support of RHV credential type is only partly at this time. The limitation is due to the fact that we are still using Tower API V1 and its support of RHV credential type is only partial. It's missing the optional field 'ca_file' which is only supported by API V2.
New commit detected on ManageIQ/manageiq-providers-ansible_tower/master: https://github.com/ManageIQ/manageiq-providers-ansible_tower/commit/319daaccc5ca8bab7ede974c780ea458572f403f commit 319daaccc5ca8bab7ede974c780ea458572f403f Author: James Wong <webpotent> AuthorDate: Thu Feb 22 11:51:21 2018 -0500 Commit: James Wong <webpotent> CommitDate: Thu Feb 22 11:51:21 2018 -0500 Tower Rhv credential type https://bugzilla.redhat.com/show_bug.cgi?id=1526048 app/models/manageiq/providers/ansible_tower/automation_manager.rb | 1 + app/models/manageiq/providers/ansible_tower/automation_manager/rhv_credential.rb | 3 + app/models/manageiq/providers/ansible_tower/shared/automation_manager/rhv_credential.rb | 24 + app/models/manageiq/providers/ansible_tower/shared/inventory/parser/automation_manager.rb | 3 +- 4 files changed, 30 insertions(+), 1 deletion(-)
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/847ecbb69802e06b76126e887d14fabe41c3a42e commit 847ecbb69802e06b76126e887d14fabe41c3a42e Author: James Wong <jwong> AuthorDate: Fri Feb 23 13:45:20 2018 -0500 Commit: James Wong <jwong> CommitDate: Fri Feb 23 13:45:20 2018 -0500 Tower Rhv credential type Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1526048 app/models/manageiq/providers/embedded_ansible/automation_manager.rb | 1 + app/models/manageiq/providers/embedded_ansible/automation_manager/rhv_credential.rb | 3 + 2 files changed, 4 insertions(+)
https://github.com/ManageIQ/manageiq-providers-ansible_tower/pull/69
New commit detected on ManageIQ/manageiq-providers-ansible_tower/master: https://github.com/ManageIQ/manageiq-providers-ansible_tower/commit/f0a8535d390ac0dd7be92a41a441e80fb2c1c497 commit f0a8535d390ac0dd7be92a41a441e80fb2c1c497 Author: James Wong <webpotent> AuthorDate: Thu Mar 22 09:28:21 2018 -0400 Commit: James Wong <webpotent> CommitDate: Thu Mar 22 09:28:21 2018 -0400 Add host field to rhv_credential Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1526048 app/models/manageiq/providers/ansible_tower/shared/automation_manager/rhv_credential.rb | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-)
All three PRs would need to be backported to gaprindashvili: https://github.com/ManageIQ/manageiq/pull/17044 https://github.com/ManageIQ/manageiq-providers-ansible_tower/pull/62 https://github.com/ManageIQ/manageiq-providers-ansible_tower/pull/69
Verified on CFME-5.10.0.17/RHV-4.2.5.3 Using this playbook https://github.com/patchkez/ansible_playbooks/blob/master/connect_to_rhv.yml I was able to get username, password and hostname, that were provided to RHV ansible credential.