summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2012-12-13 20:07:36 +0000
committerDaniel P. Berrange <berrange@redhat.com>2012-12-19 18:54:33 +0000
commit4aa45d2900a3063305a7b2c727abfc2371909b21 (patch)
treeba331927cb3a5d8122349144a98e527383d72674 /etc
parent481d6ff142b8daeb08b22001997b5cf701a6d134 (diff)
downloadnova-4aa45d2900a3063305a7b2c727abfc2371909b21.tar.gz
nova-4aa45d2900a3063305a7b2c727abfc2371909b21.tar.xz
nova-4aa45d2900a3063305a7b2c727abfc2371909b21.zip
Allow loading of product/vendor/package info from external file
Currently the version.py file hardcodes some basic info for the NOVA_PRODUCT, NOVA_VENDOR and NOVA_PACKAGE constants. It is desirable that OS distro vendors can override/extend this data in packages they ship. Cloud providers may also desire to do the same. This allows Nova to optionally load this data from a /etc/nova/release file. That file should contain the data in a trivial "ini" format. For example: [Nova] vendor = Fedora Project package = 1.fc18 Note that vendor sare not required to override all strings. In this example, the 'product' field is not set, leaving it on the default 'OpenStack Nova' value. Change-Id: I3d8d32eaf35268c4b0908b0a93b7c9a2ea9c580a Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'etc')
-rw-r--r--etc/nova/release.sample4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/nova/release.sample b/etc/nova/release.sample
new file mode 100644
index 000000000..4c0d8e48e
--- /dev/null
+++ b/etc/nova/release.sample
@@ -0,0 +1,4 @@
+[Nova]
+vendor = Fedora Project
+product = OpenStack Nova
+package = 1.fc18