From 659b8a026c2286ac54e63c8eecc63aa9b8594016 Mon Sep 17 00:00:00 2001 From: Yanis Guenane Date: Mon, 20 Jul 2015 14:25:08 +0200 Subject: [PATCH] Default to latest rdo-release Currently one needs to explicitly specifies the $RDO_RELEASE one wants to retrive. In order to alleviate the number of environment variables to export from the user side it sounds reasonable to default to the latest available version. The same process is used for the Fedora release to install in the fedora element[1] [1] https://github.com/openstack/diskimage-builder/blob/master/elements/fedora/environment.d/10-fedora-distro-name.bash#L2 Change-Id: I5d983ecc03bd157cdbc707b70975bdd8d8c59ced --- elements/rdo-release/README.md | 7 ++++--- .../rdo-release/environment.d/10-rdo-release-name.bash | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 elements/rdo-release/environment.d/10-rdo-release-name.bash diff --git a/elements/rdo-release/README.md b/elements/rdo-release/README.md index 8f5222e30..eab140e82 100644 --- a/elements/rdo-release/README.md +++ b/elements/rdo-release/README.md @@ -1,4 +1,5 @@ Enables the RDO yum repository for a released version of OpenStack on Red Hat -based operating systems. This element requires the $RDO_RELEASE variable -set to select the version of RDO to install. Use the rdo-icehouse element -to set the default version to install to "icehouse". +based operating systems. $RDO_RELEASE is set by default to the latest openstack +release. It can be overriden to select the version of RDO to install. +Set the environment variable to 'juno' to set the default version to +install to 'juno'. diff --git a/elements/rdo-release/environment.d/10-rdo-release-name.bash b/elements/rdo-release/environment.d/10-rdo-release-name.bash new file mode 100644 index 000000000..ce07fba0f --- /dev/null +++ b/elements/rdo-release/environment.d/10-rdo-release-name.bash @@ -0,0 +1 @@ +export RDO_RELEASE=${RDO_RELEASE:-kilo}