I use Vagrant and Puppet to install Apache and PHP on Ubuntu. However, during vagrant up I get the error message below. I think the path to the templates is correct, then why the error?
I use the setting here , modified to ensure that apt-get update is executed first
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"]; }
Patterns
- /modules/php/templates/etc/php5/conf.d/apc.ini.erb
- /modules/php/templates/etc/php5/conf.d/php.ini.erb
source share