Re: can I install modules based on manifest file?

61 views
Skip to first unread message
Message has been deleted

jcbollinger

unread,
Dec 12, 2012, 9:57:21 AM12/12/12
to puppet...@googlegroups.com


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/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

Maxym Pendyshchuk

unread,
Dec 12, 2012, 10:53:15 AM12/12/12
to puppet...@googlegroups.com
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.

Jakov Sosic

unread,
Dec 12, 2012, 2:13:50 PM12/12/12
to puppet...@googlegroups.com
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.

Reply all
Reply to author
Forward
0 new messages