From d9dc8f1334ce82de07bce27a8d412f9414f4a7ed Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Fri, 9 Oct 2015 09:39:14 -0400 Subject: [PATCH] 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 --- elements/ironic-agent/environment.d/01-ironic-agent.sh | 6 ++++++ elements/ironic-agent/source-repository-ironic-agent | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 elements/ironic-agent/environment.d/01-ironic-agent.sh diff --git a/elements/ironic-agent/environment.d/01-ironic-agent.sh b/elements/ironic-agent/environment.d/01-ironic-agent.sh new file mode 100644 index 00000000..4b759277 --- /dev/null +++ b/elements/ironic-agent/environment.d/01-ironic-agent.sh @@ -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 diff --git a/elements/ironic-agent/source-repository-ironic-agent b/elements/ironic-agent/source-repository-ironic-agent index 2109dd1f..37422952 100644 --- a/elements/ironic-agent/source-repository-ironic-agent +++ b/elements/ironic-agent/source-repository-ironic-agent @@ -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