aboutsummaryrefslogtreecommitdiff
path: root/tools/cleanup-host
diff options
context:
space:
mode:
authorPaul Bourke <paul.bourke@oracle.com>2017-04-07 12:53:24 +0100
committerPaul Bourke <paul.bourke@oracle.com>2017-06-08 09:55:54 +0100
commit5cb375645c0b48e4bdc13f94b8ef6b6a1bd91fbc (patch)
tree72d8ad0f684220858fe4be43a40cc4a5a4597328 /tools/cleanup-host
parentf8c40a4588787eeb40cce471d423cc0b48fec57c (diff)
downloadkolla-ansible-5cb375645c0b48e4bdc13f94b8ef6b6a1bd91fbc.tar.gz
kolla-ansible-5cb375645c0b48e4bdc13f94b8ef6b6a1bd91fbc.zip
Add a Kolla 'devstack' mode
Add a new variable 'kolla_devmode', which when enabled, clones and bindmounts service source code into the containers. This commit adds the relevant changes for Heat, more services can be added and built upon. Usage: * Set 'kolla_devmode: yes' * Code is cloned to /opt/stack/{{ project_name }} on target node(s) * Users can develop in these repos, and simply restart the container to pick up / test changes. Debugging can be done from the host via 'remote_pdb'[0]. [0] https://pypi.python.org/pypi/remote-pdb Implements: blueprint mount-sources Change-Id: Ic0431b10d723bf84eeefc72039376fe0058dd902
Diffstat (limited to 'tools/cleanup-host')
-rwxr-xr-xtools/cleanup-host5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/cleanup-host b/tools/cleanup-host
index cc2aa322a..bf7584d3c 100755
--- a/tools/cleanup-host
+++ b/tools/cleanup-host
@@ -63,3 +63,8 @@ for dir in $FOLDER_PATH*; do
rm -rfv $dir
fi
done
+
+if [[ "$destroy_include_dev" == "yes" ]]; then
+ echo "Cleaning up dev repos..."
+ rm -rfv "${kolla_dev_repos_directory}"
+fi