From 4aa45d2900a3063305a7b2c727abfc2371909b21 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Thu, 13 Dec 2012 20:07:36 +0000 Subject: 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 --- etc/nova/release.sample | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 etc/nova/release.sample (limited to 'etc') 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 -- cgit