Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Commit

Permalink
Setup apt-key with our internal signing key
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Kottler committed Jul 1, 2014
1 parent 9280cd4 commit 2549fba
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .chef/bootstrap/rubygems-trusty.erb
Expand Up @@ -5,12 +5,14 @@ hostname -F /etc/hostname

echo "`ip addr | grep eth0 | grep "inet " | cut -d " " -f 6 | cut -d \/ -f 1` `cat /etc/hostname`" >> /etc/hosts

# Make sure the machine is using the internal apt repository during bootstrap
# fetch the rubygems package signing public key and add it to the apt keyring
curl http://repo01.common.rubygems.org/packages.key | sudo apt-key add -

# remove the AWS repos
rm /etc/apt/sources.list
echo 'deb http://repo01.common.rubygems.org trusty main' > /etc/apt/sources.list.d/rubygems_main.list

# Allow unauthenicated packages temporarily
echo "APT::Get::AllowUnauthenticated 'true';" > /etc/apt/apt.conf.d/05unauthenticated
# add the internal apt repo
echo 'deb http://repo01.common.rubygems.org trusty main' > /etc/apt/sources.list.d/rubygems_main.list

apt-get update
apt-get upgrade -y
Expand Down

0 comments on commit 2549fba

Please sign in to comment.