Skip to content

deivis163/Cherry-Terraform-Haproxy-Example

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Cherry-Terraform-Haproxy-Example

Requirements:

Directions:

  • Create an API Key for your CherryServers account at https://portal.cherryservers.com/#/settings/api-keys

  • Export the key on working terminal session: export CHERRY_AUTH_TOKEN="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9"

  • Next, you will need an SSH key with which to access your servers and for terraform to use to provision your servers automatically.

  • Use command: ssh-keygen -f ~/.ssh/cherry

  • This will create ~/.ssh/cherry and ~/.ssh/cherry.pub

  • Edit variables.tf and enter valid teamid

  • Run template with command: terraform init

Results

  • Once template completed all tasks open Main server's (Hostname Haproxy) floating IP in a web browser. This will show web1 or web2 server IP, reload page IP's should change each time. Firewall is configured to allow connections from main server, so any other users can access web1 and web2 sites dirrectly.

About

Cherry-Terraform-Haproxy-Example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published