From where does the puppet module get the software package?

i know how the puppet module is pushed into the agent and installs the software package which is specified in the module. My doubt is how and from where does the module fetch or get the software package? Do we need to maintain any specific software repo? Someone please clarify.

1 Answer

Puppet use the package resource type to install the software that you wanted to manage(install/uninstall). At the backend it will use whatever the default OS package manager(yum/pkg/apt), so in case of yum you need a repository that is accessible and have the software package that you want to install.

You can list the Puppet resource/types using puppet describe -l and its corresponding manual with puppet describe <type>. If you want to see what Puppet is doing, you can use --debug flag.

If you want to see which yum repositories are configured on your machine, look under /etc/yum.repos.d/ for the configurations your system is using, or use the
puppet resource yumrepo
command to list yum repositories seen by puppet on your system.