Add post-uninstall script

This commit is contained in:
John Hua 2015-09-06 16:33:42 +08:00
parent 73c2dda4a9
commit 725a31182e
2 changed files with 8 additions and 1 deletions

View File

@ -3,7 +3,7 @@ name: xenserver-fuel-plugin
# Human-readable name for your plugin
title: Xenserver Plugin
# Plugin version
version: '0.0.4'
version: '0.4.0'
# Description
description: Enable Mirantis OpenStack to integrate with Xenserver
# Required fuel version

7
uninstall.sh Normal file
View File

@ -0,0 +1,7 @@
name=${1-"xenserver-fuel-plugin*"}
cd /var/www/nailgun/plugins/%{name}
dockerctl copy cleardb.py nailgun:/tmp/cleardb.py
dockerctl shell nailgun /tmp/cleardb.py
dockerctl shell nailgun rm /tmp/cleardb.py
fuel rel --sync-deployment-tasks --dir /etc/puppet/