-
-
Save pkilambi/11189980 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# assumption is starting with a generic minimal install of Ubuntu trusty | |
# | |
# this will install an all_in_one using puppetry from a Cisco repo; | |
# OpenStack packages come from a separate Cisco repo while other packages come from Ubuntu trusty | |
# general cleanup - kill any repos and puppet cobbler may have added | |
rm -f /etc/apt/sources.list.d/* | |
apt-get update | |
apt-get remove --purge --yes puppet puppet-common | |
apt-get autoremove --purge --yes | |
# add our new puppet repo and get debs | |
wget -qO- http://openstack-repo.cisco.com/openstack/APT-GPG-KEY-Cisco-Puppet | apt-key add - | |
cat > /etc/apt/sources.list.d/cisco-openstack-puppet-mirror_icehouse.list<<EOF | |
# cisco-openstack-puppet-mirror_icehouse | |
deb http://openstack-repo.cisco.com/openstack/puppet icehouse-proposed main | |
deb-src http://openstack-repo.cisco.com/openstack/puppet icehouse-proposed main | |
EOF | |
apt-get update && apt-get dist-upgrade -y && apt-get install -y git | |
# get and fix puppet_openstack_builder | |
cd | |
git clone -b icehouse https://github.com/CiscoSystems/puppet_openstack_builder | |
cd puppet_openstack_builder | |
# temp bug fixes / workarounds before install | |
# | |
# https://bugs.launchpad.net/openstack-cisco/+bug/1303973 - nested class_group fixes - partially merged | |
wget -qO- https://github.com/CiscoSystems/puppet_openstack_builder/pull/73.diff | patch -p1 | |
# | |
# https://bugs.launchpad.net/openstack-cisco/+bug/1304579 - connection errors due to mysql config | |
git fetch https://review.openstack.org/stackforge/puppet_openstack_builder refs/changes/33/88033/5 && git cherry-pick -x FETCH_HEAD | |
# | |
# https://bugs.launchpad.net/openstack-cisco/+bug/1302163 - vif creation fails - workaround partially merged | |
git fetch https://review.openstack.org/stackforge/puppet_openstack_builder refs/changes/50/87650/3 && git cherry-pick -x FETCH_HEAD | |
# | |
# repo fixes | |
echo "coe::base::supplemental_repo: false" >> /root/puppet_openstack_builder/data/hiera_data/user.common.yaml | |
sed -i "s/pocket: ''/pocket: '-proposed'/" data/hiera_data/vendor/cisco_coi_common.yaml | |
sed -i 's/icehouse main/icehouse-proposed main/g' install-scripts/cisco.install.sh | |
# go, go, go! | |
cd install-scripts | |
export vendor=cisco | |
export scenario=all_in_one | |
./install.sh | |
# temp fixes / workarounds after install | |
# | |
# https://bugs.launchpad.net/openstack-cisco/+bug/1301976 - glance Ubuntu pkg bug - think this is merged everywhere | |
#chown -R glance:glance /var/lib/glance/image* | |
# lots of ordering stuff to sort out still; run a few times to work around | |
puppet apply /etc/puppet/manifests/site.pp | |
puppet apply /etc/puppet/manifests/site.pp | |
puppet apply /etc/puppet/manifests/site.pp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment