From 2c27c61d30508d9df52b02f492963d90336547ef Mon Sep 17 00:00:00 2001 From: James Slagle Date: Thu, 16 Oct 2014 15:34:43 -0400 Subject: [PATCH] Add script to setup delorean --- scripts/instack-setup-delorean | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 scripts/instack-setup-delorean diff --git a/scripts/instack-setup-delorean b/scripts/instack-setup-delorean new file mode 100755 index 000000000..58567bec2 --- /dev/null +++ b/scripts/instack-setup-delorean @@ -0,0 +1,16 @@ +#!/bin/bash + +set -eux +set -o pipefail + +export INSTACK_ROOT=${INSTACK_ROOT:-"/usr/share"} +source "$INSTACK_ROOT"/instack-undercloud/instack-sourcerc + +sudo curl -o /etc/yum.repos.d/delorean.repo $DELOREAN_REPO +sudo curl -o /etc/yum.repos.d/delorean-alt.repo $DELOREAN_REPO_ALT +sudo sed -i "s/delorean/delorean-alt/g" /etc/yum.repos.d/delorean-alt.repo +sudo /bin/bash -c "echo >> /etc/yum.repos.d/delorean.repo" +sudo /bin/bash -c "echo 'exclude=openstack-tripleo openstack-tripleo-image-elements openstack-tripleo-heat-templates diskimage-builder dib-utils os-cloud-config openstack-ironic-api openstack-ironic-common openstack-ironic-conductor' >> /etc/yum.repos.d/delorean.repo" +sudo /bin/bash -c "echo >> /etc/yum.repos.d/delorean-alt.repo" +sudo /bin/bash -c "echo 'exclude=openstack-tripleo openstack-tripleo-image-elements openstack-tripleo-heat-templates diskimage-builder dib-utils os-cloud-config openstack-ironic-api openstack-ironic-common openstack-ironic-conductor' >> /etc/yum.repos.d/delorean-alt.repo" +