consul 起動
$ consul agent -data-dir /tmp/consul -server -bootstrap
confd 用設定ファイル
$ cat ~/confd/conf.d/myconfig.toml
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 |
describe package('nginx') do | |
it { should be_installed } | |
end | |
describe service('nginx') do | |
it { should be_enabled } | |
it { should be_running } | |
end |
tap phinze/homebrew-cask || true | |
tap homebrew/versions|| true | |
update || true | |
install brew-cask || true | |
install git || true | |
install ag || true | |
install hub || true | |
install rbenv || true | |
install ruby-build || true |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |