Skip to content

Instantly share code, notes, and snippets.

@pcanterini
Last active December 21, 2015 21:49
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 pcanterini/6371338 to your computer and use it in GitHub Desktop.
Save pcanterini/6371338 to your computer and use it in GitHub Desktop.
Setting up server with knife solo
# ssh stuff
brew install ssh-copy-id
ssh-copy-id root@server
# knife solo
gem install knife-solo
knife solo init project-name
knife cookbook create nginx -o cookbooks
knife prepare root@ip
# remember to add cookbook to json file eg: {"run_list":["recipe[nginx]"]}
knife solo cook root@ip
gem install librarian-chef
librarian-chef init
librarian-chef install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment