Expand install-server to run some additional required steps.

(imported from commit 22719e7a4ea62c8830c502052ec5547a1b3cf726)
This commit is contained in:
Luke Faraone 2013-05-23 15:06:13 -04:00
parent 0e77082873
commit 29dbb1de1b
1 changed files with 3 additions and 2 deletions

View File

@ -70,11 +70,12 @@ EOF
# Stupid hack because humbug-self-signed.key isn't in git # Stupid hack because humbug-self-signed.key isn't in git
scp -i "$amazon_key_file" "$humbug_cert_file" root@"$server":/root/humbug/certs/humbug-self-signed.key scp -i "$amazon_key_file" "$humbug_cert_file" root@"$server":/root/humbug/certs/humbug-self-signed.key
# TODO: Copy the real certs into place for prod servers
ssh "$server" -t -i "$amazon_key_file" -lroot <<EOF ssh "$server" -t -i "$amazon_key_file" -lroot <<EOF
cp -a /root/humbug/certs/ /etc/ssl/
cp -a /root/humbug/servers/puppet/modules/humbug/files/puppet.conf /etc/puppet/ cp -a /root/humbug/servers/puppet/modules/humbug/files/puppet.conf /etc/puppet/
puppet apply -e 'class {"humbug": machinetype => "$type"}' puppet apply -e 'class {"humbug": machinetype => "$type"}'
cp -a /root/humbug /home/humbug/humbug
chown -R humbug:humbug /home/humbug/humbug
# These server restarting bits should be moveable into puppet-land, ideally # These server restarting bits should be moveable into puppet-land, ideally
apt-get -y upgrade apt-get -y upgrade
if [ -e "/etc/init.d/nginx" ]; then if [ -e "/etc/init.d/nginx" ]; then