我有一个使用 gem的Serverspec测试:
require 'spec_helper'
require 'inifile'
describe 'inifile test -' do
file = '/tmp/testfile1.ini'
file_ini = IniFile.load(file)
it 'testfile1.ini should contain expected values' do
expect(file_ini['section1']['var
我已经使用Chef (+library chef)安装了一个Vagrant + Virtualbox。当我第一次执行vagrant up时,食谱可以正确加载。但是,当我在之后进行配置时(无论是vagrant provision、vagrant reload --provision还是vagrant up --provision),我都会得到这个错误:
Shared folders that Chef requires are missing on the virtual machine.
This is usually due to configuration changing after a
我在Jenkins (ubuntu12.04)中安装了vagrant插件,当我尝试构建时,我得到了以下错误。
Started by user anonymous
Building in workspace /var/lib/jenkins/jobs/testvagrant/workspace
Running Vagrant with version: 1.0.2.dev
FATAL: (ArgumentError) wrong number of arguments calling initialize (1 for 0)
org.jruby.exceptions.RaiseExcept
尝试为vagrant安装vagrant-digitalocean插件,但在安装它所需的gem时出现问题。
Installing the 'vagrant-digitalocean' plugin. This can take a few minutes...
/opt/vagrant/embedded/lib/ruby/1.9.1/rubygems/installer.rb:562:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::In
我将开始使用Vagrant,并希望与KVM/qemu (以及虚拟机管理器GUI)一起使用它,而不是安装VirtualBox。所以我第一次安装了Vagrant:
$ vagrant --version
Vagrant 1.9.1
$ vagrant box list
There are no installed boxes! Use `vagrant box add` to add some
作为 ,我需要vagrant-libvirt才能使用KVM,所以接下来我安装了它:
$ vagrant plugin list
vagrant-libvirt (0.0.37)
vagrant-shar
我在使用Symfony 1.4 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /vagrant/lib/util/sfToolkit.class.php on line 365时出错了
有关职能如下:
public static function pregtr($search, $replacePairs)
{
if(strpos(implode(', ', $replacePairs),'e') >
我的版本:
VBoxManage --version
5.1.28r117968
vagrant -v
Vagrant 2.0.0
当我运行流浪者时,我得到一个输出,就像当我运行流浪者时,得到一个输出,就像
Vagrant failed to initialize at a very early stage:
The plugins failed to load properly. The error message given is
shown below.
This Vagrant environment has specified that it requires the Vagr
我一直在关注这个迷茫的天蓝色教程
但我得到了这个错误
Failed to load the "vagrant-azure" plugin. View logs for more details.
当我运行以下命令时
vagrant up --provider=azure --debug
完整的堆栈跟踪如下。如何验证是否正确安装了迷航插件?
devops/vagrant/vagrant-azure$ vagrant up --provider=azure --debug
INFO global: Vagrant version: 1.4.3
INFO global: Ruby
我正在使用VirtualBox管理器(4.3.22版)和Vagrant (1.7.2版),在执行“流浪者重新加载”时,目前有以下问题。注意:我在台式机上使用的是Windows 7专业版。(注意-我可以在机器中使用ssh,但不确定为什么会出现错误)
我已经尝试了其他帖子中关于安装额外插件的一些其他解决方案,但仍然没有什么乐趣。
Failed to mount folders in Linux guest. This is usually because
the "vboxsf" file system is not available. Please verify that
th
我正在学习厨师和使用厨房进行ec2驱动程序的测试过程,并有以下serverspec文件:
require "serverspec"
set :backend, :exec
describe "rbenv" do
describe file("/home/ec2-user/.rbenv") do
it { should be_directory }
end
describe command("rbenv versions") do
its(:exit_status) { should eq 0 }
当md5sum属性添加到文件资源类型时?Serverspec的版本将md5sum报告为“找不到”。
describe file ('/etc/sysctl.conf' ) do
it { should be_file }
its(:md5sum) { should eq '07a47f3db13458ebc93b334973cc8720' }
its(:sha256sum) { should eq 'd63896fa456d47dde634c592d46d1d39cb6183fdbc450a2581b6f12d977ee2d1'
上唇设置需要有Vagrant设置。但在Ubuntu14.04中失败
$vagrant plugin install vagrant-lxc
Installing the 'vagrant-lxc' plugin. This can take a few minutes...
Installed the plugin 'vagrant-lxc (1.2.1)'!
$vagrant up
Failed to load the "vagrant-lxc" plugin. View logs for more details.
Bringing ma
我已经更新到了Vagrant 1.4.3,并且正在尝试安装vagrant-berkshelf插件。我得到以下错误:
$ vagrant plugin install vagrant-berkshelf
Installing the 'vagrant-berkshelf' plugin. This can take a few minutes...
/opt/vagrant/embedded/lib/ruby/2.0.0/rubygems/installer.rb:184:in `check_executable_overwrite': "minitar"
所以我有一台游荡的机器 m@m-ThinkPad-L15-Gen-2:~/Desktop/estudos/shellclass/localuser$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'jasonc/centos7'...
==> default: Matching MAC address for NAT networking...
==> default:
我听说我应该使用预期而不是Serverspec中的“应该”语句。
我一直在搜索可以用于文件匹配的期望,但是我看到的关于Serverspec使用的所有教程都应该而不是预期的。这是因为Serverspec还没有更新以使用预期吗?
describe file('/etc/yum.conf') do
it { should be_file }
it { should be_owned_by 'root' }
it { should be_grouped_into 'root' }
it { should be_mode 644 }