问题标签 [berkshelf]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
2368 浏览

chef-infra - Berksfile 语法问题

我一直在寻找有关 Berksfile 内容的详细文档,但我发现的只是示例,以及“你可以做到这一点”的非正式内容。(这包括http://berkshelf.com上的材料……)

Q1: Berksfile 的基本语法是什么?

Q2:可以进入 Berksfile 的“声明”的(完整)列表是什么?

Q3:“cookbook”声明采用可选的散列参数。vanilla Berkshelf 支持的(完整)选项列表是什么?

0 投票
3 回答
4994 浏览

vagrant - Cannot install vagrant-berkshelf plugin

I've updated to Vagrant 1.4.3 and am attempting to install the vagrant-berkshelf plugin. I'm getting the following error:

I tried to manually install minitar with both the system and Vagrant-specific rubies. System ruby installed it just fine. When I manually installed it into the Vagrant ruby, I got the following:

But, I still get the exact same error. I've tried to manually install every gem in the Gemfile from the vagrant-berkshelf github repo and still cannot install.

0 投票
1 回答
43 浏览

ruby - 调用不同的 ruby​​ 解释器

我在一个 Ruby 脚本(特别是 Vagrantfile)中运行,我想调用另一个 ruby​​ 可执行文件(特别是针对系统 ruby​​ 安装的berks)。我知道我可以做类似的事情

但是,这不是很便携。(例如,不同的机器需要不同的 GEM_PATH)。那么,如何从 Ruby 脚本中调用针对不同 Ruby 环境安装的脚本呢?

0 投票
1 回答
165 浏览

virtualbox - Berkshelf 加载错误的依赖项

我正在尝试创建一本食谱以在 vagrant 中安装我的开发环境。我在OSX 10.9Berkshelf 2.0.13上使用vagrant 1.4.3。我正在开发的食谱在 github ( https://github.com/Batou99/console-development )

当我在我的食谱文件夹中运行 berks install 时,一切都很好,berkshelf 下载了正确的依赖项,我对 7even/oh-my-zsh 特别感兴趣,berkshelf 下载得很好。

但是,当我在要配置的 vagrant 机器中使用我的新食谱时,我将我的食谱加载到 Berksfile 使用

食谱“控制台开发”,git:“ http://github.com/Batou99/console-development

但不知何故,berkshelf 最终加载了存储在 opscode 中的 oh-my-zsh 食谱,这是完全不同的。

我究竟做错了什么?为什么 berkshelf 会忽略我在食谱中设置的路径?

我一直在尝试解决这个问题几个小时,这让我发疯,任何帮助将不胜感激。

0 投票
2 回答
1836 浏览

cygwin - Git-bash (Cygwin) 和 vagrant-berkshelf

使用 git-bash 运行 vagrant 命令时遇到问题。例如,如果我运行 vagrant status,我将收到错误消息“无法加载“vagrant-berkshelf”插件。” 如果我从普通的 Windows 命令行运行相同的命令,它将正常工作。如果我运行“VAGRANT_LOG=info vagrant status”,输出如下所示:

我已经尝试卸载并重新安装插件,并且自从这个问题以来我已经升级了 vagrant 两次,它仍然存在。我目前在 vagrant 1.4.3

有什么想法可以从这里开始吗?

0 投票
1 回答
373 浏览

vagrant - 由于 Berkshelf 备份,GitLab Vagrant VM 需要永远进行配置?

我有一个基于生产模式的GitLab Cookbook的带有 Vagrant 的 GitLab VM。我运行良好,直到今天我不得不重新启动主机。

这是我运行时的输出vagrant provision

现在它永远停留在这里(超过 40 分钟)......在查看了一些lsof输出后,我发现Berkshelf正在创建我所有文件的备份home_git,其中包含数 GB 大小的应用程序和存储库。

但是,当我配置 VM 时,不必备份这些文件。

问题:

  • 看起来Berkshelf将这些文件视为我的一本食谱的一部分?
  • 我怎么能告诉Berkshelf忽略这个文件夹?

...或任何其他提示都非常受欢迎!我还试图在没有运气的情况下禁用Berkshelf 。

解决方法

如果我移开该home_git文件夹,则配置过程会快速顺利地进行。

0 投票
1 回答
2092 浏览

rspec - ChefSpec 测试出现“未找到食谱”错误

我正在尝试运行我的 ChefSpec 测试。

这是我的 ChefSpec 测试:

这是我的食谱

这是我执行 ChefSpec 测试时的错误输出

我不知道是什么问题,我认为 Berkshelf 可以解决食谱依赖项。

0 投票
1 回答
276 浏览

chef-solo - 使用 Chef Solo 和 Berkshelf 时忽略自制程序

我正在使用 Chef Solo 来配置 Vagrant 机器和 Berkshelf 来安装食谱。我正在使用 Linux 主机(Ubuntu)。

我想使用 mysql 食谱;但是当我添加:

Berkshelfhomebrew作为传递依赖安装。Chef-solo 加载了所有内容,但由于我在 Linux 中而失败。

安装或加载食谱时有什么方法可以忽略该homebrew软件包?

注意:我尝试过使用

但是当我运行berks install --without ignore它时会返回一个错误:

0 投票
0 回答
140 浏览

windows - Chef-Repo Berkshelf?

I was wondering if someone out there can help or advise me, on the following

I have a single Chef Git Repo, being a windows guys i'm now comfortable with things like git / chef etc, and want to start splitting my cookbooks out into single repo's etc and allowing other people / teams to manage them

Now there is loads of documentation out there, but none on how and where I install berkshelf.

Let me explain

Current Setup

run a git and everything gets pushed up to my repo

Where i'm confused is or the lack of documentation or i'm might not be getting it.

I want each cookbook as its own repo ? but what happens to everything above that cookbook as that should existing in a repo aswell ? e.g. databags / environments / roles / certs etc .....

or is it the chef-repo, stays fairly slim and you install berkshelf in the root chef-repo folder and it manages where those cookbooks exist on your machine

e.g

actually those cookbook might exist in the following location c:\stuff\cookbooks

rather than under the cookbook locations of c:\users\myname\chef-repo

regards

j

0 投票
2 回答
426 浏览

chef-infra - 通过 Berksfile 版本约束更新软件

使用 vagrant + Berkshelf,我正在尝试将我已经存在的 VM 更新到更新的git版本。

流浪文件

伯克斯文件

cookbook 'git', '>= 1.9.0'

请注意,我在创建 VM 后添加了版本约束。

但是,在运行时vagrant reload --version,没有对该git版本进行任何软件更新。

此外,销毁 VM,然后运行vagrant up --provision不会导致安装 git 的 v 1.9.0(或更好)版本。

为什么?