Skip to content

Instantly share code, notes, and snippets.

@rodriguezsergio
rodriguezsergio / knife.rb
Created July 19, 2013 16:45
An example knife.rb file for those getting started with Chef.
current_dir = File.dirname(__FILE__)
log_level :info
log_location STDOUT
node_name 'MY_USER_ON_CHEF_SERVER'
client_key "#{current_dir}/MY_USER_ON_CHEF_SERVER.pem"
validation_client_name 'CHEF-VALIDATOR'
validation_key "#{current_dir}/CHEF-VALIDATOR.pem"
chef_server_url 'https://URL'
syntax_check_cache_path "#{current_dir}/syntax_check_cache"
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "sandbox"
config.vm.box_url = "http://repos.sensuapp.org/box/sandbox.box"
config.vm.network :forwarded_port, guest: 4567, host: 4567
config.vm.network :forwarded_port, guest: 8080, host: 8080
end