Hi, I''m a puppet-n00b and am struggling a bit to get Apache-modules working. I''ve tried several, but most seem to be quite Debian-oriented and lack documentation. 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. 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 ---------------%<--------------- Your help is very much appreciated. Regards, Ger. -- 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.
On Jul 5, 2011, at 1:31 AM, Vorik wrote:> Hi, > > I''m a puppet-n00b and am struggling a bit to get Apache-modules > working. > > I''ve tried several, but most seem to be quite Debian-oriented and lack > documentation. > > 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. > > 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 > ---------------%<-------------------- What are the contents of? modules/apache/manifests? modules/apache/manifests/definitions? (I''m almost afraid to ask because it appears that vhosts.pp has a ton of lines) Craig -- 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.
On 07/05/2011 04:31 AM, Vorik wrote:> 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 >Make sure the package is installed before using any of its files or ciommands. class webserver_base { package { "httpd": ensure => installed, } service { "httpd": ensure => running, require => Package[ "httpd" ], } apache::vhost {"www.dus123camptocamp.nl": ensure => present, require => Package[ "httpd" ], notify => Service[ "httpd" ], } } -- 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.
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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.