Bug 1630433

Summary: [RFE] Include Ansible Satellite modules with Ansible Core modules
Product: Red Hat Satellite Reporter: Chris Alliey <calliey>
Component: PackagingAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Peter Ondrejka <pondrejk>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.4CC: ableisch, apatel, aperotti, bkearney, casmith, dhlavacd, dmatoule, egolov, ehelms, janarula, jentrena, kgaikwad, mawerner, mbacovsk, mcasabur, mhulan, mshira, rabajaj, satellite6-bugs, smutkule, sokeeffe, vmeghana, wtome
Target Milestone: 6.8.0Keywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: ansible-collection-redhat-satellite-0.8.0 Doc Type: Enhancement
Doc Text:
You can now install foreman-ansible-modules from RPM and use them from an Ansible runtime. This install includes all necessary libraries.
Story Points: ---
Clone Of:
: 1849742 (view as bug list) Environment:
Last Closed: 2020-10-27 12:57:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1828242, 1849742    

Description Chris Alliey 2018-09-18 15:51:49 UTC
Description of problem:
Include Ansible modules for Satellite management with the Ansible Core modules.  Disconnected environments can't download and use modules downloaded from 'random' locations on the internet.  Adding satellite modules to the core Ansible modules will allow disconnected environments to use Ansible to install, configure, and manage their multiple Satellite installations.

Version-Release number of selected component (if applicable):
N/A - All

How reproducible:
Always.  Many disconnected environments are using hammer commands to manage their environments, but this should be replaced with more streamlined and idempotent ansible modules.  

Examples:
https://github.com/SatelliteQE/nailgun

Comment 2 Marek Hulan 2018-09-18 17:19:19 UTC
Thanks for the report. How do you envision consuming these modules? Or do you want just that modules are shipped as part od Satellite in its repositories? Meaning this is packaging and supporting these ansible modules?

Comment 3 Chris Alliey 2018-09-18 17:41:11 UTC
Marek,
In many (I work in a few) disconnected environments, downloading additional content (not directly from Red Hat) is a monumental task.  Having the ansible modules for Satellite included in the core Ansible modules (which get distributed with Ansible) or even with the Satellite content would be beneficial.  

Again this use case is in a disconnected environment.  Content distributed by Red Hat as part of our product, is easier to justify bringing through to a disconnected network then something downloaded from another source.  

We are also finding that inside disconnected environments, we don't just have one Satellite server and capsule, but a large number of Satellite servers inside every network / disconnected customer.  The number of disconnected Satellite installations is increasing every day, and having a standard (easy!) method for installing, managing, and configuring these installations is something that would greatly assist those of us managing them.

Not asking to change the core installation from puppet to Ansible, but fast tracking the Satellite specific modules to be included with the core Ansible modules (if possible) would allow our consultants onsite in these disconnected environments to work more efficiently.

Comment 5 Evgeni Golov 2019-08-14 08:05:24 UTC
Isn't this a dupe of https://bugzilla.redhat.com/show_bug.cgi?id=1643188?

Comment 6 Bryan Kearney 2019-10-11 14:38:22 UTC
*** Bug 1643188 has been marked as a duplicate of this bug. ***

Comment 8 wtome 2019-11-13 20:09:29 UTC
Ansible Collections are the content strategy of the future for Ansible. It appears that the existing Foreman/Satellite content has already been refactored into a collection which currently is available on Galaxy (https://galaxy.ansible.com/theforeman/foreman) and could be distributed via Automation Hub with BU support for customers who would like to download directly from Red Hat.

Comment 13 Dominik Matoulek 2020-03-02 12:26:20 UTC
Created redmine issue https://projects.theforeman.org/issues/29234 from this bug

Comment 18 Peter Ondrejka 2020-06-25 09:11:28 UTC
Verified on Satellite 6.8 snap 6, ansible-collection-redhat-satellite rpm provides the modules as expected

Comment 21 errata-xmlrpc 2020-10-27 12:57:59 UTC
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 (Important: Satellite 6.8 release), 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-2020:4366