Skip to content

jxeldotdev/vpn-ansible-packer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vpn-ansible-packer

Ansible roles andPacker config to build two AWS AMIs:

  • Base configuration (RHEL 8 Activated, Monitoring configured (TBC), utility packages installed, security etc.)
  • Pritunl VPN Installed including its dependencies. This uses the AMI above.

This repository also contains a terraform module used for deploying it.

This is used in the infrastructure for my todo app project. View the following repositories and project for more information:

Getting started

Create an Ansible Vault file

Create an ansible vault file with the following variables:

  • vault_ansible_user_password
  • vault_redhat_activation_key
  • vault_ansible_user_password
  • ansible_become_password
  • root_password

Install dependencies

Make sure you have the following tools installed:

If you don't have ansible installed, you can install it by running the following below:

# use pipenv to install ansible or pip to install ansible
(which pipenv && pipenv install) || pip install --user ansible

Please ensure that you have access to the RHEL AMIs.

Building base AMI

# Verify that you can access an AWS account, and you're in the right account.
aws sts get-caller-identity

./build.sh base-ami

Building VPN AMI

# Verify that you can access an AWS account
aws sts get-caller-identity

./build.sh pritunl-ami

Terraform configuration

About

Ansible role(s) and packer configuration to install and configure Pritunl

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published