blob: 871e9e7383f349c532cdf11b7db64dbb9db995fa [file] [log] [blame]
Sean Dagued0931212012-10-04 16:06:44 -04001# lib/tempest
2
3# Dependencies:
4# ``functions`` file
5# ``SERVICE_{TENANT_NAME|PASSWORD}`` must be defined
6# <list other global vars that are assumed to be defined>
7
8# ``stack.sh`` calls the entry points in this order:
9#
10# install_XXXX
11# configure_XXXX
12# init_XXXX
13# start_XXXX
14# stop_XXXX
15# cleanup_XXXX
16
17# Save trace setting
18XTRACE=$(set +o | grep xtrace)
19set +o xtrace
20
21
22# Defaults
23# --------
24
25# <define global variables here that belong to this project>
26
27# Set up default directories
28TEMPEST_DIR=$DEST/tempest
29TEMPEST_CONF_DIR=$DEST/tempest/etc
30
31# Entry Points
32# ------------
33
34
35# configure_tempest() - Set config files, create data dirs, etc
36function configure_tempest() {
37 # sudo python setup.py deploy
38 # iniset $tempest_CONF ...
39 # This function intentionally left blank
40 #
41 # TODO(sdague) actually move the guts of configure tempest
42 # into this function
43 cd tools
44 ./configure_tempest.sh
45 cd ..
46}
47
48
49# install_tempest() - Collect source and prepare
50function install_tempest() {
51 git_clone $TEMPEST_REPO $TEMPEST_DIR $TEMPEST_BRANCH
Jeremy Stanley9a352da2012-11-28 17:22:39 +000052
53 # Tempest doesn't satisfy its dependencies on its own, so
54 # install them here instead.
55 sudo pip install -r $TEMPEST_DIR/tools/pip-requires
Sean Dagued0931212012-10-04 16:06:44 -040056}
57
58
59# Restore xtrace
60$XTRACE