带有漂流剂的LEMP堆-罐';是否安装Php5 fpm/Nginx?

带有漂流剂的LEMP堆-罐';是否安装Php5 fpm/Nginx?,php,ubuntu,nginx,vagrant,puppet,Php,Ubuntu,Nginx,Vagrant,Puppet,我对Vagrant还很陌生,但我正在尝试使用Puppet创建一个Vagrant设置,但它是基于Linux 14.04而不是12.04。但是,将VM更改为“ubuntu/trusty64”会导致安装失败。 就我所知,它在某个地方进行Nginx或PHP5 fpm安装时失败了 运行vagrant up后,我会收到以下错误消息,当我转到本地服务器时,我会看到一个“欢迎使用Nginx!”页面: (让我知道我是否应该发布整个事件,这只是我在终端中看到的错误消息) (我确实尝试在这里更正语法,消除了错误,但

我对Vagrant还很陌生,但我正在尝试使用Puppet创建一个Vagrant设置,但它是基于Linux 14.04而不是12.04。但是,将VM更改为“ubuntu/trusty64”会导致安装失败。 就我所知,它在某个地方进行Nginx或PHP5 fpm安装时失败了

运行
vagrant up
后,我会收到以下错误消息,当我转到本地服务器时,我会看到一个“欢迎使用Nginx!”页面:

(让我知道我是否应该发布整个事件,这只是我在终端中看到的错误消息)

(我确实尝试在这里更正语法,消除了错误,但这并没有影响更大的问题)

你知道为什么这可以用hashicorp/precise64框,而不是ubuntu/trusty64吗? 我猜它是在php/nginx的设置中,但我不知道为什么。我的文件与安装程序中的文件完全相同


谢谢

核心问题是木偶版本的不同

Ubuntu12.04 LTS Precise(流浪者框'hashicorp/precise64'):

Ubuntu 14.04 LTS Trusty(漫游框“Ubuntu/trusty64”):

当我在Precise设置此项时,我收到了许多折旧警告:

==>默认值:警告:在/tmp/vagrant puppet/modules-7de194db6a79aa7dabd1c451463ec16b/wordpress/manifests/init.pp:22动态查找$mysql_用户 不推荐使用。有关详细信息,请参阅 . 看 如果要更改行为,请使用--debug标志

我已经完成了您链接的回购协议,并承诺进行非常基本的更改,以解决折旧问题,并允许它与ubuntu/trusty64 vagrant box一起使用。你可以找到代码

如果你只是想看看差异,那么看看

注意:我在我的Vagrant文件中使用了一些Vagrant插件,我建议您也使用它们

编辑:我也创建了这个

==> default: Error: /Stage[main]/Php5-fpm/File[/etc/php5/fpm/php.ini]: Could not evaluate: Could not retrieve information from environment production source(s) puppet:///php5-fpm/php.ini
==> default: Error: /Stage[main]/Php5-fpm/File[/etc/php5/fpm/pool.d/www.conf]: Could not evaluate: Could not retrieve information from environment production source(s) puppet:///php5-fpm/www.conf
==> default: Notice: /Stage[main]/Wordpress::Setup_db/Exec[create-user]/returns: ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '* to @localhost identified by ""' at line 1
==> default: Error: mysql -uroot -pvagrant --execute 'grant all on .* to @localhost identified by ""' returned 1 instead of one of [0]
==> default: Error: /Stage[main]/Wordpress::Setup_db/Exec[create-user]/returns: change from notrun to 0 failed: mysql -uroot -pvagrant --execute 'grant all on .* to @localhost identified by ""' returned 1 instead of one of [0]
==> default: Error: /Stage[main]/Nginx/File[/etc/nginx/nginx.conf]: Could not evaluate: Could not retrieve information from environment production source(s) puppet:///nginx/nginx.conf
==> default: Notice: /Stage[main]/Nginx/Service[nginx]: Dependency File[/etc/nginx/nginx.conf] has failures: true
==> default: Warning: /Stage[main]/Nginx/Service[nginx]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Php5-fpm/Service[php5-fpm]: Dependency File[/etc/php5/fpm/pool.d/www.conf] has failures: true
==> default: Notice: /Stage[main]/Php5-fpm/Service[php5-fpm]: Dependency File[/etc/php5/fpm/php.ini] has failures: true
==> default: Warning: /Stage[main]/Php5-fpm/Service[php5-fpm]: Skipping because of failed dependencies
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
root@lemp:~# puppet --version
2.7.19
root@lemp:~#
root@lemp:~# puppet --version
3.4.3
root@lemp:~#