Skip to content

Instantly share code, notes, and snippets.

@veszig
Created April 3, 2010 06:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save veszig/354196 to your computer and use it in GitHub Desktop.
Save veszig/354196 to your computer and use it in GitHub Desktop.
# simple knife config that let's you act as the webui user
mkdir -p /root/.chef/checksums
cat > /root/.chef/knife.rb <<\EOF
log_level :info
log_location STDOUT
node_name "chef-webui"
client_key "/etc/chef/webui.pem"
validation_client_name "chef-validator"
validation_key "/etc/chef/validation.pem"
chef_server_url "http://127.0.0.1:4000"
cache_type "BasicFile"
cache_options( :path => "/root/.chef/checksums" )
cookbook_path [ "/var/lib/chef/cookbooks" ]
EOF
knife client list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment