Ask Your Question

From where does the puppet module get the software package?

asked 2015-11-06 14:39:23 -0600

sandeep gravatar image

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-11-06 15:50:52 -0600

lupin gravatar image


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.

E.g install a zsh package and see what OS package manager it used.

puppet resource package zsh ensure=present --debug
edit flag offensive delete link more


Thanks or your response.. So should e maintain yum repo (software packages) in master or agent?

sandeep gravatar imagesandeep ( 2015-11-07 15:54:04 -0600 )edit

If your system uses yum, you need an external yum repo accessible to your client instance. If you are hosting your own software, You could create your own repo and host it on a server (apache/nginx, etc)

DarylW gravatar imageDarylW ( 2015-11-13 08:18:35 -0600 )edit

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.

DarylW gravatar imageDarylW ( 2015-11-13 08:19:49 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-11-06 14:39:23 -0600

Seen: 48 times

Last updated: Nov 06 '15