theforeman / foreman-ansible-modules

Ansible modules for interacting with the Foreman API and various plugin APIs such as Katello
GNU General Public License v3.0
145 stars 162 forks source link

add how to create metadata.json to content_export_library/repository/version #1717

Open evgeni opened 3 months ago

evgeni commented 3 months ago
SUMMARY

For an export to be usable, it needs a metadata.json (see content_export_info), but the examples do not mention that, or the info module at all, leaving users with unusable exports.

ISSUE TYPE
sayan3296 commented 2 months ago

To add on, In case the format is syncable, We need to generate listing files in the exported content. When using hammer i.e.

hammer content-export complete library --organization-id 1 --format syncable

It takes care of the export and then does the generate-listing as well as generate-metadata action on that export but when using the redhat.satellite.content_export_* ansible modules [ or their foreman alternatives ], The listing files are not generated at all [ also the metadata file ].

metadata + listing files -> both needed when we want to import the data via hammer content-import listing files only --> Needed when we want to copy the syncable export data in a webserver and use it as a Custom CDN to sync the data from.