Add script to setup delorean

This commit is contained in:
James Slagle 2014-10-16 15:34:43 -04:00
parent 0112330f41
commit 2c27c61d30

16
scripts/instack-setup-delorean Executable file
View File

@ -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"