Hello, Excerpts from Vorik's message of Tue Jul 05 10:31:54 +0200 2011: > > What is a good module to manage Apache on RHEL6 that is known to work? > I want to be able to create vhosts, nothing that fancy. > > Currently, I'm trying camptocamp-apache. Unfortunately, the readme > file only states how to do some authentication stuff.
Yes, I agree their README is totally useless... Shame on them ;-) You'll find more useful documentation running puppetdoc against this module (or reading the comments in the manifest files). > Configuration (found at the camptocamp-tomcat plugin) > ---------------%<--------------- > class webserver_base { > > package { "httpd": ensure => installed } > service { "httpd": ensure => running } > > apache::vhost {"www.dus123camptocamp.nl": > ensure => present, > } > > } > ---------------%<--------------- > > It fails with this error: > ---------------%<--------------- > err: Could not run Puppet configuration client: Could not find > dependency File[/usr/local/sbin/a2ensite] for Exec[enable vhost > www.dus123camptocamp.nl] at /etc/puppet/modules/apache/manifests/ > definitions/vhost.pp:251 > ---------------%<--------------- If you try something like: ---------------%<--------------- class webserver_base { include apache apache::vhost {"www.dus123camptocamp.nl": ensure => present, } } ---------------%<--------------- ... you should have a much more pleasant experience. If you take a peep into apache/manifests/init.pp you'll see that the "apache" class includes other classes based on which distribution you are running. As we have both RHEL and Debian servers, we have made quite an effort to make this module abstract away the distribution specific bits (paths and so). You should be able to use it on RHEL without any hassle. We have modified this module to add support for RHEL6 a couple of months ago. Please be sure to use a recent checkout: https://github.com/camptocamp/puppet-apache Cheers, Marc -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.