如何确定我的Vagrant盒子中最初安装厨师的位置?

时间:2015-02-25 14:49:17

标签: vagrant chef

目前,我的任务是完成一项特定的计划。问题是,包含所有代码的打包Vagrant框不能正常工作。

似乎提供的方式有很多问题,但我会从问题#1开始。

在目录中的Vagrant文​​件中,有一个自动配置脚本可以读取一堆食谱并完成它的常规业务,但是,为了配置甚至工作,它至少需要厨师11. *和安装的厨师版本是10.0。*

我很困惑甚至在Vagrant盒子上安装厨师10的位置以运行配置。

正在使用的流浪盒是saucy64。

任何人都可以帮我解决这个问题吗?

2 个答案:

答案 0 :(得分:0)

您可以使用以下命令查找厨师(或任何其他)可执行文件的位置:

which chef

来自手册页WHICH(1)

NAME
     which -- locate a program file in the user's path

SYNOPSIS
     which [-as] program ...

DESCRIPTION
     The which utility takes a list of command names and searches the path for each executable file that would be run had
     these commands actually been invoked.

     The following options are available:

     -a      List all instances of executables found (instead of just the first one of each).

     -s      No output, just return 0 if any of the executables are found, or 1 if none are found.

     Some shells may provide a builtin which command which is similar or identical to this utility.  Consult the builtin(1)
     manual page.

答案 1 :(得分:0)

我建议使用omnibus插件进行流浪。这将自动安装所需的厨师版本,并且无需将厨师包装在您的流浪盒中。

相关问题