Skip to content

Instantly share code, notes, and snippets.

@fxposter
Created December 8, 2015 13:02
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 fxposter/ff42b79b9d734ef3ad66 to your computer and use it in GitHub Desktop.
Save fxposter/ff42b79b9d734ef3ad66 to your computer and use it in GitHub Desktop.

chef-server-ctl cleanse

apt-get purge -y chef-server apt-get purge -y chef-server-core

rm -rf /etc/opscode /etc/chef-server /opt/chef-server /opt/opscode /var/opt /var/log/chef-server

dpkg -i chef-server_11.0.11-1.ubuntu.11.04_amd64.deb

chef-server-ctl reconfigure

chef-server-ctl start


chef-server-ctl stop

tar xvfzp var-opt-opscode-2015-12-07-08-52-08.tar.gz --exclude='var/opt/chef-server/chef-solr/jetty/logs/*.request.log' -C /

chef-server-ctl start postgresql

su - opscode-pgsql gunzip -c /tmp/postgresql-dump-2015-12-07-08-52-08.gz | /opt/chef-server/embedded/bin/psql -U "opscode-pgsql" -d postgres

chef-server-ctl reconfigure

chef-server-ctl start rabbitmq

PATH=$PATH:/opt/chef-server/embedded/bin/ rabbitmqctl change_password chef $RABBITMQ_PASSWORD

chef-server-ctl start

chef-server-ctl tail erchef # look for connection errors


wget https://packagecloud.io/chef/stable/packages/ubuntu/lucid/chef-server_11.1.7-1_amd64.deb/download

chef-server-ctl stop

dpkg -i chef-server_11.1.7-1_amd64.deb

chef-server-ctl upgrade

chef-server-ctl reconfigure

chef-server-ctl restart


wget https://packagecloud.io/chef/stable/packages/ubuntu/trusty/chef-server-core_12.3.1-1_amd64.deb/download

chef-server-ctl stop

dpkg -i chef-server-core_12.3.1-1_amd64.deb

screen chef-server-ctl upgrade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment