Skip to content

Instantly share code, notes, and snippets.

@qhartman
Created April 12, 2013 19:49
Show Gist options
  • Save qhartman/5374616 to your computer and use it in GitHub Desktop.
Save qhartman/5374616 to your computer and use it in GitHub Desktop.
CHEF_CLIENT_INSTALL = <<-EOF
#!/bin/sh
test -d /opt/chef || {
echo "Installing chef-client via omnibus"
wget https://www.opscode.com/chef/install.sh
bash ./install.sh -v 10.24.0
}
EOF
# and then in Vagrant.configure block:
config.vm.provision :shell, :inline => CHEF_CLIENT_INSTALL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment