On Sunday, September 16, 2012 12:03:00 AM UTC+2, Jakov Sosic wrote: > > On 09/15/2012 09:32 PM, Adnan Doric wrote: > > Hello all, > > > > I'm vagrant user completely new to puppet but enjoying it so far! > > > > I would like to install phppgadmin with it's dependencies (postgres 9.1, > > apache 2, php 5) and be able to access it on > > http://localhost/phppgadmin/ with postgres root user. > > > > It is a task far too complicated for me until I learn more about puppet > > so if you can help me do it or find an existing module or at least a > > thorough tutorial so I can do it myself it would be great! > > > > Thank you in advance > > Task is not that hard, but first you need to learn puppet. You *have to* > go through all the documentation online, and try examples, become aware > of the differences between resources, variables, modules... > > The time consumed for all these tasks will depend hugely on how fast of > a learner are you and do you have anyone at hand who can show you > basics. Puppet is as simple as it can be, for the task it's designed > for, but nevertheless you have to invest some time in it. > > So your starting point should be: > > http://docs.puppetlabs.com/learning/ > > Go through sections: > > Resources and the RAL > Variables, Conditionals, and Facts > Modules and Classes (Part One) > Templates > > > After that test your configurations on a dev system. Test test test. Try > and make error, then retry and fail again. > > > Also note that if you continue to use puppet, you will probably re-write > your manifests and classes couple of times along the way in the first 6 > months of using it. > > If you want to do a one-time-task, and don't intend to use puppet > extensively in the future, then I recommend writing a shell script :) > > > > And to address your main issue, installig pgadmin should be easy. If you > don't plan to do some fancy stuff it will come down to this (on CentOS > for example): > > package {'httpd': > ensure => present > } > service {'httpd': > ensure => running, > enable => true, > require => Package['httpd'], > } > package {'phppgadmin': > ensure => present, > } > package {'phpPgAdmin': > ensure => present, > notify => Service['httpd'], > } > > > And that's about it. But beware, you must have an idea about what are > you doing, because sooner or later it *will* byte you in the ass. So > please, don't even think about skipping the learning curve. > > > > > -- > Jakov Sosic > www.srce.unizg.hr >
I already have a starting point which is this vagrant setup: https://github.com/amaia/rails-starter-box Postgres is already included, I just have to figure out how to include phppgadmin in it. I guess I have to read now :) Thank you a lot for your help! -- 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/-/gZS8H_hcM54J. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.