Skip to content

Instantly share code, notes, and snippets.

@carbonin
Created November 6, 2017 20:39
Show Gist options
  • Select an option

  • Save carbonin/a25b84efca2e6b3c3f91b673821a22c8 to your computer and use it in GitHub Desktop.

Select an option

Save carbonin/a25b84efca2e6b3c3f91b673821a22c8 to your computer and use it in GitHub Desktop.
Script to clean out the default setup of a ManageIQ appliance. This should make the appliance easier to configure in multi-server architectures.
#!/bin/bash
# Stop and disable services
systemctl stop evmserverd
systemctl disable evmserverd
systemctl stop $APPLIANCE_PG_SERVICE
systemctl disable $APPLIANCE_PG_SERVICE
# Remove auto-generated files
pushd /var/www/miq/vmdb
rm -f REGION GUID certs/* config/database.yml
popd
# Remove database
pushd $APPLIANCE_PG_DATA
rm -rf ./*
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment