Skip to content

Instantly share code, notes, and snippets.

@brandocorp
Created April 21, 2017 22:24
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 brandocorp/642ef0f2d1649013cfa36bfa84a98fed to your computer and use it in GitHub Desktop.
Save brandocorp/642ef0f2d1649013cfa36bfa84a98fed to your computer and use it in GitHub Desktop.
Uninstall Chef Server 12
#!/bin/bash -e
chef-server-ctl stop || chef-server-ctl kill
killall -9 -u opscode
killall -9 runsvdir
killall -9 rabbitmq
killall -9 nginx
chef-server-ctl uninstall
dpkg -P opscode-push-jobs-server
dpkg -P chef-manage
dpkg -P chef-server-core
rm -v -rf /etc/che* /etc/opscod* /opt/chef-manage /opt/opscod* /var/opt/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment