On 09/15/2012 09:32 PM, Adnan Doric wrote:
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 onhttp://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)
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
ensure => present
ensure => running,
enable => true,
require => Package['httpd'],
ensure => present,
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.
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to email@example.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.