我正在使用Vagrant和Puppet在Ubuntu上安裝Apache和PHP。不過,我在vagrant up
期間收到以下錯誤。我認爲模板的路徑是正確的,那麼爲什麼錯誤?流浪漢/ Puppet ---確保:從現在開始改變失敗:無法設置現在確保:沒有這樣的文件或目錄
我使用的修改,以確保別的
錯誤之前apt-get update
運行安裝here
←[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
/模塊/ PHP /艙單/ 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"];
}
模板
- /modules/php/templates/etc/php5/conf.d/apc.ini.erb
- /模塊/ PHP /模板的/ etc/PHP5/conf.d/php.ini.erb
不保證答案,但要確保你的VirtualBox是最新的。這爲我解決了這個問題。 – MaxPRafferty