Ask Your Question

Install puppet modules in manifests?

asked 2016-10-12 09:06:24 -0600

s.venkov gravatar image


Is it possible to install puppet modules to all of my agents via manifests files? When I try this in my site.pp file:

module { 'author/mymodule':
  ensure   => present,

i get this error:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type module at /etc/puppet/manifests/site.pp:17 on node agent

Thanks, Stanislav

edit retag flag offensive close merge delete



There would be not purpose to installing puppet modules on agents. Agents do not reference puppet code, they only request a catalog from the master. Why are you trying to do this?

lavaman gravatar imagelavaman ( 2016-10-12 14:01:04 -0600 )edit

I want to install several versions of Magento and manage Magento modules on my agents via master manifests. Is this possible, how to do it? I found this module ''cmuench/n98magerun'' in puppet modules which maybe does what I want.

s.venkov gravatar images.venkov ( 2016-10-13 02:51:06 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-10-12 15:58:18 -0600

No, with bare puppet it ain't possible. As lavaman pointed out, there's hardly a purpose to do so. Use a SCM (e.g. git) and distribute source code via it.

edit flag offensive delete link more


The closest that I have seen is using the r10k module to 'bootstrap' your puppet server, in which case it installs r10k, sets up it's config, which points at a control repo and then sets up the appropriate environments

DarylW gravatar imageDarylW ( 2016-10-12 16:50:45 -0600 )edit

Kai Burghardt I want to install Magento and manage its modules via manifests. I prefer to not put Magento source in SCM. Is there a way to do it with puppet? DaryIW I will checkout r10k module and will see if it works in my case. Thanks!

s.venkov gravatar images.venkov ( 2016-10-13 02:56:01 -0600 )edit

Do you need multiple 'versions' at the same time, or the ability to select between them? Also, you don't install modules to agents, you install modules to th master, and the agent's catalogs are compiled on the master using the modules

DarylW gravatar imageDarylW ( 2016-10-13 08:56:01 -0600 )edit

If your Magento modules can be managed with the basis resource types (e.g. file and exec), you can define your own resource type building on them .

Kai Burghardt gravatar imageKai Burghardt ( 2016-10-13 09:18:57 -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: 2016-10-12 09:06:24 -0600

Seen: 107 times

Last updated: Oct 12 '16