Use ironic-agent for source-repositories

I recently built a ramdisk for IPA and was confused by
the fact that the source-repositories name did not
match the element name. (this is a convention,
confusing when they don't match but certainly not
required).

This patch makes it so you can use DIB_REPOREF_ironic_agent to
customize the IPA ramdisk sources when building ramdisks.

For backwards compat if DIB_REPOREF_agent is set it automatically
sets the new DIB_REPOREF_ironic_agent to that value as well.

Change-Id: I082d989d0d85601f5984dc7c3767b8d66a3d5438
This commit is contained in:
Dan Prince 2015-10-09 09:39:14 -04:00
parent 1d476dd994
commit d9dc8f1334
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,6 @@
# backwards compatability with the previous environment
# variable for the ironic-agent source repository
if [ -n "${DIB_REPOREF_agent:-}" ]; then
echo "WARNING: DIB_REPOREF_agent is deprecated. Please update to use DIB_REPOREF_ironic_agent instead."
export DIB_REPOREF_ironic_agent=${DIB_REPOREF_agent}
fi

View File

@ -1 +1 @@
agent git /tmp/ironic-python-agent https://git.openstack.org/openstack/ironic-python-agent ironic-agent git /tmp/ironic-python-agent https://git.openstack.org/openstack/ironic-python-agent