Skip to content

Instantly share code, notes, and snippets.

@JCotton1123
Last active May 19, 2017 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save JCotton1123/ff768548c05d2835257f to your computer and use it in GitHub Desktop.
Save JCotton1123/ff768548c05d2835257f to your computer and use it in GitHub Desktop.
Setup Chef Server

Setup Chef server

  • Make sure the server is configured with an appropriate hostname that resolves to itself (add hosts entry if needed)
  • Download and install Chef server package from: http://downloads.chef.io/chef-server/
  • chef-server-ctl reconfigure
  • chef-server-ctl user-create admin Chef Administrator jcotton@bitlancer.com <password> --filename /tmp/admin.pem
  • chef-server-ctl org-create <org-short-name> "<org-full-name>" --association_user admin --filename /tmp/validator.pem
  • Use OpenSSL to generate a new cert and key and update: /var/opt/opscode/nginx/ca/<fqdn>.key, /var/opt/opscode/nginx/ca/<fqdn>.crt. Restart services (nginx) with: chef-server-ctl restart

Cleanup and re-initiate a bad install

  • chef-server-ctl cleanse
  • chef-server-ctl reconfigure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment