I am using Vagrant and Puppet to install Apache and PHP on Ubuntu. However I am getting the error below during vagrant up
. I think the path for the templates are correct, then why the error?
I'm using the setup here modified to ensure apt-get update
runs before anything else
Error
←[1;35merr: /Stage[main]/Php/File[/etc/php5/apache2/apc.ini]/ensure: change from
absent to present failed: Could not set 'present on ensure: No such file or dir
ectory - /etc/php5/apache2/apc.ini.puppettmp_6187 at /tmp/vagrant-puppet/modules
-0/php/manifests/init.pp:44←[0m
←[1;35merr: /Stage[main]/Php/File[/etc/php5/apache2/php.ini]/ensure: change from
absent to present failed: Could not set 'present on ensure: No such file or dir
ectory - /etc/php5/apache2/php.ini.puppettmp_6687 at /tmp/vagrant-puppet/modules
-0/php/manifests/init.pp:36←[0m
/modules/php/manifests/init.pp
file { "/etc/php5/apache2/php.ini":
ensure => present,
mode => 644,
content => template("php/etc/php5/conf.d/php.ini.erb"),
require => Package["php5"],
notify => Service["apache"];
}
file { "/etc/php5/apache2/apc.ini":
ensure => present,
mode => 644,
content => template("php/etc/php5/conf.d/apc.ini.erb"),
require => [ Package["php5"], Package["php-apc"], Package["apache"] ],
notify => Service["apache"];
}
Templates
- /modules/php/templates/etc/php5/conf.d/apc.ini.erb
- /modules/php/templates/etc/php5/conf.d/php.ini.erb