https://github.com/z0mbix/screeningtest-infrastructure
Screening Test Infrastructure Configuration
https://github.com/z0mbix/screeningtest-infrastructure
Last synced: over 1 year ago
JSON representation
Screening Test Infrastructure Configuration
- Host: GitHub
- URL: https://github.com/z0mbix/screeningtest-infrastructure
- Owner: z0mbix
- Created: 2016-04-10T21:22:39.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-10T21:27:59.000Z (about 10 years ago)
- Last Synced: 2025-01-29T15:50:43.567Z (over 1 year ago)
- Language: Ruby
- Size: 47.9 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Screening Test Infrastructure
-----------------------------
This repo sets up the following infrastructure on DigitalOcean:
- 1 x nginx web/load balancer server (web-1)
- 2 x golang app servers (app-{1,2})
All servers are Ubuntu 14.04.
Terraform is used to provision the servers, and uses cloud-init to install, configure and run chef-client, so the servers can register with the Chef server and configure themselves according to their role.
Chef uses the git resource to clone the [screeningtest-app](https://github.com/z0mbix/screeningtest-app) GitHub repo, and uses a simple Makefile to build the go binary. It then creates an upstart init script to manage the service. Chef will pull the latest master branch of this repo, and if there are any changes, it will rebuild the binary and restart the process.
## Requirements
- Linux or Mac OS
- Terraform
- ChefDK
- Hosted Chef account (Including validation key)
Create the file **modules/common/terraform.tf** containing your validation key e.g.:
output "validation_key" {
value = <