Commit 5c3bf993 authored by Seth Floyd's avatar Seth Floyd

Added more info in Readme

parent 95c8fee7
# Pritunl VPN
---
## Pritunl VPN built in Terraform in its own VPC.
### Pritunl VPN built in Terraform in its own VPC.
Pritunl Homepage: [https://pritunl.com/](https://pritunl.com/)
......@@ -18,6 +16,8 @@ This is a basic install of a VPC in AWS and an instance that sits in an ASG that
Pritunl documentation can be found here: [https://docs.pritunl.com/docs](https://docs.pritunl.com/docs)
The general idea is that the instance is spun up and by using the user_data the install and backup scripts are created. Pritunl uses MongoDB to store the data for the vpn so a cron job runs hourly that backs up the mongodb files to the S3 bucket that is created. If the instance goes down the data is pulled out of the bucket and loaded as part of the install script.
---
# VARIABLES
......@@ -61,5 +61,12 @@ The var for the Cert ARN needs to be added in the pritunl-vpn.tf file.
---
# UPDATING
* If you can stand the 10-15 mins of down time you can SSH to the box and manually run the backup script. Then terminate the instance. After a few minutes the ASG will see that instance is missing and spin up a new one with the latest version of Pritunl installed.
* Another option would be to SSH in and manually run the backup script. Then up the count in the ASG to 2. Let the instance spin up and finish then scale the ASG back down to 1. The ASG will automatically kill off the oldest instance in the group.
* Depending on your configurations you will need to boot all the users off the old instance before the ASG will terminate it because of connection draining.
---
# DESTROY
If you wish to destroy all of the resources found in this stack you will need to run the `BucketCleaner.py` script for each bucket (`pritunl-us-east-1` and `pritunl-us-west-2`) before you run the detroy pipeline.
* If you wish to destroy all of the resources found in this stack you will need to run the `BucketCleaner.py` script for each bucket (`pritunl-us-east-1` and `pritunl-us-west-2`) before you run the detroy pipeline.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment