Hide Forgot
Description of problem: satellite-installer missing ansible install option Version-Release number of selected component (if applicable): satellite-6.3.0-1.0.git.7.fb12bf2.el7sat.noarch satellite-installer-6.3.0.0-1.git.12.695b530.el7sat.noarch tfm-rubygem-foreman_ansible-1.0-1.fm1_13.el7.noarch How reproducible: Always Steps to Reproduce: There is no option to enable/disable ansible plugin in latest 6.3 build. # satellite-installer --help | grep ansible -> This command returns nothing In foreman upstream: # foreman-installer --help | grep ansible --[no-]enable-foreman-plugin-ansible Enable 'foreman_plugin_ansible' puppet module (default: true) Actual results: No option to enable/disable ansible plugin Expected results: An option to enable/disable ansible plugin just like foreman upstream Additional info:
Upstream bug assigned to inecas
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/16789 has been resolved.
Failed in the latest downstream build # satellite-installer --enable-foreman-plugin-ansible ERROR: Unrecognised option '--enable-foreman-plugin-ansible' See: 'satellite-installer --help' # satellite-installer --help | grep ansible <Returned nothing> # rpm -qa | grep satellite satellite-6.3.0-11.1.beta.el7sat.noarch satellite-installer-6.3.0-3.el7sat.noarch tfm-rubygem-foreman_theme_satellite-1.0.1-2.el7sat.noarch satellite-cli-6.3.0-11.1.beta.el7sat.noarch
Continuation to Comment 8: # rpm -qa | grep ansible tfm-rubygem-foreman_ansible-1.3.0-1.el7sat.noarch tfm-rubygem-foreman_ansible_core-0.0.1-3.el7sat.noarch
Verified in satellite 6.4. Options exist to enable/disable ansible plugin: # satellite-installer --help | grep ansible --[no-]enable-foreman-plugin-ansible Enable 'foreman_plugin_ansible' puppet module (default: true) --[no-]enable-foreman-proxy-plugin-ansible Enable 'foreman_proxy_plugin_ansible' puppet module (default: true) = Module foreman_proxy_plugin_ansible: # foreman-installer --help | grep ansible --[no-]enable-foreman-plugin-ansible Enable 'foreman_plugin_ansible' puppet module (default: true) --[no-]enable-foreman-proxy-plugin-ansible Enable 'foreman_proxy_plugin_ansible' puppet module (default: true) = Module foreman_proxy_plugin_ansible:
Hello Chris, Can you also confirm that the options actually work? You can perhaps do the following: 1. Run satellite-installer with `enable-foreman-plugin-ansible` and confirm that ansible is configured correctly 2. Repeat 1 with disabling the ansible plugin 3. Perform 1 and 2 on a capsule with the --[no-]enable-foreman-proxy-plugin-ansible and confirm it is working as expected. Thanks!
Enabling ansible plugin works fine, however Ansible is still installed when running the satellite-installer with the plugin disabled: # satellite-installer --scenario satellite --no-enable-foreman-plugin-ansible # ansible --version ansible 2.5.4 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible python version = 2.7.5 (default, Feb 20 2018, 09:19:12) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
We don't implement the reverse operation, that would be doing the installation when using the `--no-enable` option in any of the plugins, as it can be quite tricky, especially when cleanup could lead to accidentally deleting users data.
Ok, thanks Ivan. How should the installer with the --no-enable option work?
After removing ansible, I ran the satellite with --no-enable option, but still got ansible in the result. # yum remove ansible # satellite-installer --scenario satellite --no-enable-foreman-plugin-ansible # ansible --version ansible 2.6.3 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible python version = 2.7.5 (default, Feb 20 2018, 09:19:12) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
Moving back to ON_QA, please see comment 16 and comment 18, this is not how it's supposed to work. Satellite installer will not uninstall ansible package. Also Satellite depends on rubygem-smart_proxy_ansible which depends on ansible. This is not optional dependency.
Created attachment 1485212 [details] Ansible in capsule Ansible autoinstalls with satellite package and verified that it's on sat6.4 after satellite-install --scenario satellite. -bash-4.2# ansible --version ansible 2.6.3 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible python version = 2.7.5 (default, May 31 2018, 09:41:32) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] Verified that after adding capsule to sat6.4, I see ansible on capsule as indicative of the attached screenshot. Verified on snap_6.4.0_22.0
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:2927