Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Latest commit

 

History

History
73 lines (54 loc) · 1.75 KB

README.md

File metadata and controls

73 lines (54 loc) · 1.75 KB

DKAN on AWS

Sets up creating DKAN instances in AWS using CloudFormation. Sets up an instance with ElasticLoadBalancer in front of an AutoScale Group of EC2 webservers that connect to an RDS instance.

This currently includes two roles:

  • dkan_aws_as_cf - CloudFormation template for setting up new instances of a HA DKAN site
  • dkan_aws_network - Creates VPC for instances created by dkan_aws_as_cf

Requirements

Requires: https://github.com/boto/boto

Example Playbook

This includes two example projects, the cities "Mos Eisley" and "Cloud City".

To spin up the stack-wide VPC:

ansible-playbook network.yml

To spin up instances for the two cities:

ansible-playbook instances.yml

To change the number of default webservers for "Cloud City", add webserver_capicity: 3 to inventory/host_vars/bespin-cloud-city and rerun the instances.yml playbook.

Packer

Requirements

brew cask update
brew cask install packer

Intallation

git clone nucivic/ansible-dkan-aws
cd ansible-dkan-aws/roles/dkan_aws_ami
ansible-galaxy install -p roles -r requirements.yml --force
packer build dkan-aws.json

TODO: