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:
parent
1d476dd994
commit
d9dc8f1334
6
elements/ironic-agent/environment.d/01-ironic-agent.sh
Normal file
6
elements/ironic-agent/environment.d/01-ironic-agent.sh
Normal 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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user