16.2. Managing Individual Puppet Modules

If you want to create a custom product that contains both RPM content and a Puppet module to install and configure a server using the custom RPM content, use the procedure in 「Creating a Puppet Repository」 and then use the following procedure to upload Puppet modules.

Support for Custom RPMs

Red Hat does not support the modules from Puppet Forge. For any issues with these modules, contact the module developer.

Prerequisites

  1. From the Puppet Forge website, download the module that you want to use, for example, https://forge.puppetlabs.com/puppetlabs/postgresql.
  2. In your web browser, click download latest tar.gz to save to your local file system.

Procedure

  1. In the Satellite web UI, navigate to Content > Products and select the product that contains the Puppet repository that you want to manage.
  2. In the repository window, click the new Puppet repository, which displays the details page for that repository.
  3. Navigate to the Upload Puppet Module area, click Browse, select the newly downloaded and extracted Puppet module, and click Upload.

To manage and remove Puppet modules from a product, complete the following steps:

  1. In the window for your Puppet Modules repository, navigate to the upper right of the window to the Content Counts area. In the Puppet Modules row, click the numerical value that is displayed for the Puppet Modules.
  2. In the Manage Puppet Modules for your Puppet Module repository window, select the modules that you want to manage and then click Select Action and perform an action, or select Remove Puppet Modules.

For CLI Users

  1. Copy the Puppet module to your Satellite Server’s file system:

    $ scp ~/puppet_module.tar.gz root@satellite.example.com:~/.
  2. Import the Puppet module to the Puppet Modules repository:

    # hammer repository upload-content \
    --path ~/puppet_module.tar.gz \
    --id repo_ID \
    --organization "My_Organization"