Skip to content

Instantly share code, notes, and snippets.

@rudymccomb
Forked from JCotton1123/setup-chef.md
Created May 19, 2017 18:20

Revisions

  1. @JCotton1123 JCotton1123 revised this gist Oct 27, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup-chef.md
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@
    * `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`
    * 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

  2. @JCotton1123 JCotton1123 created this gist Oct 27, 2015.
    13 changes: 13 additions & 0 deletions setup-chef.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    ## 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`