consul 起動
$ consul agent -data-dir /tmp/consul -server -bootstrap
confd 用設定ファイル
$ cat ~/confd/conf.d/myconfig.toml
| raise "crash me" if caller.length > 500 |
| include SpecInfra::Helper::DetectOS | |
| include SpecInfra::Helper::Lxc | |
| SpecInfra.configuration.lxc = 'precise' |
| #!/usr/bin/env ruby | |
| require 'docker' | |
| image = Docker::Image.get('ubuntu') | |
| loop do | |
| container = Docker::Container::create( | |
| 'Image' => image.id, | |
| 'Cmd' => '/bin/ls', |
| package main | |
| import ( | |
| "encoding/json" | |
| "github.com/mizzy/consul-catalog" | |
| "log" | |
| "os" | |
| "reflect" | |
| "time" | |
| ) |
| 1) Failure: | |
| TestPowerAssert#test_nginx_installed [power_assert.rb:34]: | |
| assert { package('nginx').installed?(nil, nil) } | |
| | | |
| false |
consul 起動
$ consul agent -data-dir /tmp/consul -server -bootstrap
confd 用設定ファイル
$ cat ~/confd/conf.d/myconfig.toml
modules/foo/manifests/init.pp
class foo {
define bar() {
notice("**********************************************")
notice("Calling: foo::bar")
notice("module_name: $module_name")
notice("caller_module_name: $caller_module_name")
}| sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions |
| config.vm.provision :serverspec do |spec| | |
| spec.pattern = '*_spec.rb' | |
| end |
| require 'serverspec' | |
| include SpecInfra::Helper::DetectOS | |
| include SpecInfra::Helper::Exec |