...
Delete the EBS volumes that are listed as "available". They were recently orphaned by the staging servers.
1. Build the DB server
ansible-playbook create_kithe.yml --vault-password-file password_file.txt --private-key=~/.ssh/test.pem --extra-vars "role=database tier=staging"
...
Then take the private IP of the resulting database server from the EC2 console, and add it to
group_vars/kithe_staging
:
redis_ip: new_private_ip_of_scihist_digicoll-database1-staging
postgres_ip: new_private_ip_of_scihist_digicoll-database1-staging
2. Build the SOLR server
ansible-playbook create_kithe.yml --vault-password-file password_file.txt --private-key=~/.ssh/test.pem --extra-vars "role=solr tier=staging"
Then take the private IP of the resulting SOLR server from the EC2 console, and add it to
group_vars/kithe_staging
:
postgres_ip: new_private_ip_of_scihist_digicoll-solr1-staging
...
5. Associate the elastic IP with the new web server
Select "Elastic IPs"
Select "digicoll-staging"
Actions -> Associate address
Under the "Resource type", Choose "Instance".
Fill in the appropriate instance (the staging web server)
Check "Allow this Elastic IP address to be reassociated if already attached"
Click "Associate".
You should then see an instance IP under "Associated instance ID" in row digicoll-staging
6. Deploy to staging
cd /path/to/scihist_digicoll/
bundle exec cap staging deploy --trace
...