To share your module with other Puppet users, get contributions to your modules, and maintain your module releases, publish your module on the Puppet Forge.
The Forge is a community repository of modules, written and contributed by open source Puppet and Puppet Enterprise users.
To publish your module, you'll:
Create a Forge account, if you don't already have one.
Prepare your module for packaging.
Add module metadata in the metadata.json file.
Build an uploadable tarball of your module.
Upload your module using the Forge web interface.
For a deatiled understanding of how you could publish your own module, refer to :https://puppet.com/docs/puppet/latest/modules_publishing.html#concept-6126