3.5. Adding Puppet Modules from a Git Repository
pulp-puppet-module-builder. This tool checks out repositories containing a set of modules, builds the modules, and publishes them in a structure for Satellite 6 to synchronize. This provides an efficient way to manage module development in Git and include them in the Satellite 6 workflow.
Note
pulp-puppet-module-builder tool on other machines using the pulp-puppet-tools package.
Procedure 3.3. Publishing Git Repository to a Local Directory
- Create a directory on the Satellite server to synchronize the modules.
# mkdir /modules # chmod 755 /modules
- Run the
pulp-puppet-module-builderand checkout the Git repository.# pulp-puppet-module-builder --output-dir=/modules --url=git@mygitserver.com:mymodules.git --branch=develop
This checks out thedevelopbranch of the Git repository fromgit@mygitserver.com:mymodules.gitand publishes the modules to/modules.
Procedure 3.4. Publishing Git Repository to a Web Server
- Create a directory on the web server to synchronize the modules.
# mkdir /var/www/html/modules # chmod 755 /var/www/html/modules/
- Run the
pulp-puppet-module-builderand checkout the Git repository.# pulp-puppet-module-builder --output-dir=/var/www/html/modules/ --url=git@mygitserver.com:mymodules.git --branch=develop
This checks out thedevelopbranch of the Git repository fromgit@mygitserver.com:mymodules.gitand publishes the modules to/modules.
Procedure 3.5. Creating a Repository for Puppet Modules from Git
- On the Products page, click on the custom product created previously (
MyProduct). - Navigate to the Repositories subtab.
- Click Create Repository.
- Provide the repository with a Name. This example uses the name
MyGitRepo. - The Label field automatically populates with a label based on the Name.
- Select
puppetas the repository Type. - In the URL field, set the location you defined earlier. For example, local directories on the Satellite 6 server use the
file://protocol:file:///modules
A remote repository uses thehttp://protocol:http://webserver.example.com/modules/
- Click Save.
- Click Sync Now to synchronize the repository.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.