Red Hat Bugzilla – Bug 1465966
[RFE] Allow use of local file system repos for Ansible playbooks
Last modified: 2017-11-08 16:43:10 EST
Description of problem: Working with public sector clients, I am often asked to stand up CloudForms in a disconnected environment with no internet access for proof of concepts. Oftentimes, these environments have no internal git infrastructure in place. As we start to plan out POCs based on CloudForms 4.5, I've begun thinking how I will handle importing Ansible playbooks for proving out functionality of embedded Ansible.
I see that there is a URL validator rule in place (opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-1048ffdbd63f/app/views/ansible_repository/_repository_form.html.haml) which only allows HTTP or HTTPS git repos to be added. As an addendum to https://bugzilla.redhat.com/show_bug.cgi?id=1452584, I'd ask that we able to add local file system git repos as well, so we can simply copy playbooks to the appliance with the Ansible role and initialize the directory.
Version-Release number of selected component (if applicable): 5.8.x
How reproducible: Always
Steps to Reproduce:
1. Try add an Ansible repository prefixed with file:///
2. Message will display indicating repos must be http or https:
Actual results: Can not add local file system repo
Expected results: Would like to have to the option to use local file system for playbooks as the backend supports it.
Additional info: I removed the validator rule in a test env (line 55 of the indicated file), and was able to create local file system repos. Functions as expected without the url-validator in place.
This is a RFE. I am assigning to John to decide on
1. if we want to support this
2. and assign a PM score for priority assessment.