Maxym Pendyshchuk
2012-Dec-11 15:23 UTC
[Puppet Users] can I install modules based on manifest file?
Dear puppet community! I am new to puppet, just started to play with.. And I got a question (hopefully not too silly): I use a standalone version to play with. I wrote a script to install PostgreSQL DB, it uses a module puppetlabs <http://forge.puppetlabs.com/puppetlabs>/postgresql so to run this manifest, puppet should have it installed. As I got from the documentation I need to do it manually (using puppet module install ...). The question is if I can specify it in manifest (to check if puppet has this module installed and install if does not). The reason is that if I move to master/agents configuration, I want to install agents only where and when I need, and do not want to install all modules needed (although I can write a script, like bash, I do not want to do it, I want to take everything needed in one place :) is it possible to solve it this way? Or is ''puppet module install ..'' the only way? thanks in advance for any advice and information! Max -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/dYi-p5Rf0PsJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
jcbollinger
2012-Dec-12 14:57 UTC
[Puppet Users] Re: can I install modules based on manifest file?
On Tuesday, December 11, 2012 9:23:39 AM UTC-6, Maxym Pendyshchuk wrote:> > Dear puppet community! > > I am new to puppet, just started to play with.. And I got a question > (hopefully not too silly): I use a standalone version to play with. I wrote > a script to install PostgreSQL DB, it uses a module > puppetlabs <http://forge.puppetlabs.com/puppetlabs>/postgresql > > so to run this manifest, puppet should have it installed. As I got from > the documentation I need to do it manually (using puppet module install > ...). The question is if I can specify it in manifest (to check if puppet > has this module installed and install if does not). The reason is that if I > move to master/agents configuration, I want to install agents only where > and when I need, and do not want to install all modules needed (although I > can write a script, like bash, I do not want to do it, I want to take > everything needed in one place :) > > is it possible to solve it this way? Or is ''puppet module install ..'' the > only way? >You seem to have a misunderstanding. Puppet modules get installed only on the master. They define collections of configuration properties that you may choose to apply to nodes (with the cooperation of agents running on those nodes), as you configure on the master. Anything from a module that needs to be installed on agents for them to work with that module is handled automatically by Puppet via its "plugin sync" feature. Bottom line: the behavior you want (as I understand it) is standard; you don''t need to do anything special to get it. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/VJl0OD3ythsJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Maxym Pendyshchuk
2012-Dec-12 15:53 UTC
[Puppet Users] Re: can I install modules based on manifest file?
Thank you John, it helps; since I played with standalone I have not thought about it this way... So that''s a good part :) And seems like I need to store a list of plugins I install on master anyway, just in case server with master fail or I need to reinstall it.. Because as I see there are e.g. few different modules for postgresql and I need to know what exactly is/was used for my manifest. On Wednesday, December 12, 2012 4:57:21 PM UTC+2, jcbollinger wrote:> > > > On Tuesday, December 11, 2012 9:23:39 AM UTC-6, Maxym Pendyshchuk wrote: >> >> Dear puppet community! >> >> I am new to puppet, just started to play with.. And I got a question >> (hopefully not too silly): I use a standalone version to play with. I wrote >> a script to install PostgreSQL DB, it uses a module >> puppetlabs <http://forge.puppetlabs.com/puppetlabs>/postgresql >> >> so to run this manifest, puppet should have it installed. As I got from >> the documentation I need to do it manually (using puppet module install >> ...). The question is if I can specify it in manifest (to check if puppet >> has this module installed and install if does not). The reason is that if I >> move to master/agents configuration, I want to install agents only where >> and when I need, and do not want to install all modules needed (although I >> can write a script, like bash, I do not want to do it, I want to take >> everything needed in one place :) >> >> is it possible to solve it this way? Or is ''puppet module install ..'' the >> only way? >> > > You seem to have a misunderstanding. Puppet modules get installed only on > the master. They define collections of configuration properties that you > may choose to apply to nodes (with the cooperation of agents running on > those nodes), as you configure on the master. Anything from a module that > needs to be installed on agents for them to work with that module is > handled automatically by Puppet via its "plugin sync" feature. Bottom > line: the behavior you want (as I understand it) is standard; you don''t > need to do anything special to get it. > > > John > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/CW7KAqpTcWEJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Jakov Sosic
2012-Dec-12 19:13 UTC
Re: [Puppet Users] Re: can I install modules based on manifest file?
On 12/12/2012 04:53 PM, Maxym Pendyshchuk wrote:> Thank you John, it helps; since I played with standalone I have not > thought about it this way... So that''s a good part :) > > And seems like I need to store a list of plugins I install on master > anyway, just in case server with master fail or I need to reinstall it.. > Because as I see there are e.g. few different modules for postgresql and > I need to know what exactly is/was used for my manifest.Just create versioning control repo (mercurial,git,or whatever) out of your /etc/puppet/modules directory and that''s it. Every now and then push the changes to some other machine or back it up with your organiozation''s backup solution and that''s it. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.