I’ve been trying to get apache to serve from /vagrant/ using puppet through vagrant, my manifest looks like this:
class apache {
exec { 'apt-get update':
command => '/usr/bin/apt-get update'
}
package { "apache2":
ensure => present,
}
service { "apache2":
ensure => running,
require => Package["apache2"],
root => '/vagrant/'
}
}
I would really appreciate the help…. I’m stunned at how bad the manifest documentation is.
The
serviceresource manages the process but doesn’t have anything to do with the configuration files.Your manifest simply says “Make sure that apt is updated, apache2 is installed and running”.
I think what you are looking for can be handled with templates (http://docs.puppetlabs.com/guides/templating.html).