Add post installation script to deliver newrelease.yaml

This commit is contained in:
John Hua 2015-08-14 10:54:16 +08:00
parent ba2a7989d1
commit a6607881d0
1 changed files with 9 additions and 0 deletions

9
postinstall_hook.sh Normal file
View File

@ -0,0 +1,9 @@
name=${1-"xenserver-fuel-plugin*"}
dockerctl copy cleardb.py nailgun:/tmp/cleardb.py
dockerctl shell nailgun /tmp/cleardb.py
dockerctl shell nailgun rm /tmp/cleardb.py
dockerctl copy newrelease.yaml nailgun:/tmp/newrelease.yaml
dockerctl shell nailgun manage.py loaddata /tmp/newrelease.yaml
dockerctl shell nailgun rm /tmp/newrelease.yaml
fuel rel --sync-deployment-tasks --dir /etc/puppet/