Skip to content

Instantly share code, notes, and snippets.

@zambon
Last active August 29, 2015 13:58
Show Gist options
  • Save zambon/10332525 to your computer and use it in GitHub Desktop.
Save zambon/10332525 to your computer and use it in GitHub Desktop.
How to upgrade Chef Server

How to upgrade Chef Server

  1. Backup Chef Server configuration files
$ mkdir ~/chef-server/backups
$ tar -czvf ~/chef-server/backups/chef-server.$(head -n1 /opt/chef-server/version-manifest.txt | awk '{ print $2 }').backup.$(date +%s).tgz /etc/chef-server
  1. Download the latest version

Example: Chef Server 11.0.12 for Enterprise Linux 6 (64 bit)

$ curl -O https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chef-server-11.0.12-1.el6.x86_64.rpm
  1. Stop and uninstall Chef Server
$ sudo chef-server-ctl stop
$ sudo yum remove chef-server
  1. Install new version
$ sudo yum install chef-server-11.0.12-1.el6.x86_64.rpm
  1. Reconfigure and restart Chef Server
$ sudo chef-server-ctl postgresql start
$ sudo chef-server-ctl reconfigure
$ sudo chef-server-ctl restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment