summaryrefslogtreecommitdiffstats
path: root/nova/crypto.py
diff options
context:
space:
mode:
authorSoren Hansen <soren.hansen@rackspace.com>2010-11-04 12:42:14 +0100
committerSoren Hansen <soren.hansen@rackspace.com>2010-11-04 12:42:14 +0100
commitb65b41e5957d5ded516343b3611292c9744d169f (patch)
tree07b519a28c1a52e1df566f739416f935907f9366 /nova/crypto.py
parent671b712a5ad9034fa89761018203cc7c1ea0449b (diff)
downloadnova-b65b41e5957d5ded516343b3611292c9744d169f.tar.gz
nova-b65b41e5957d5ded516343b3611292c9744d169f.tar.xz
nova-b65b41e5957d5ded516343b3611292c9744d169f.zip
Add a templating mechanism in the flag parsing. Add a state_path flag that will be used as the top-level dir for all other state (such as images, instances, buckets, networks, etc). This way you only need to change one flag to put all your state in e.g. /var/lib/nova.
Diffstat (limited to 'nova/crypto.py')
-rw-r--r--nova/crypto.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/crypto.py b/nova/crypto.py
index 16b4f5e1f..045f7f53f 100644
--- a/nova/crypto.py
+++ b/nova/crypto.py
@@ -39,9 +39,9 @@ from nova import flags
FLAGS = flags.FLAGS
flags.DEFINE_string('ca_file', 'cacert.pem', 'Filename of root CA')
-flags.DEFINE_string('keys_path', utils.abspath('../keys'),
+flags.DEFINE_string('keys_path', '$state_path/keys',
'Where we keep our keys')
-flags.DEFINE_string('ca_path', utils.abspath('../CA'),
+flags.DEFINE_string('ca_path', '$state_path/CA',
'Where we keep our root CA')
flags.DEFINE_boolean('use_intermediate_ca', False,
'Should we use intermediate CAs for each project?')