Keine Beschreibung

Chris Mague 3d4cc83350 change to include db files vor 4 Jahren
ansible 3d4cc83350 change to include db files vor 4 Jahren
.gitignore 5f862eb404 start consul setup vor 5 Jahren
.terraform-version 0077fc9141 initial vor 5 Jahren
README.md 7bc99df320 add redis services to consul vor 5 Jahren
inputs.tf 118fce5406 add in testing instance vor 5 Jahren
maguec1.tfvars 3f246dfbcc pudate node config vor 5 Jahren
main.tf f2b6e2ac94 add in better setups of twem vor 4 Jahren
raft_group_setup.tpl f2b6e2ac94 add in better setups of twem vor 4 Jahren
variables.tf 118fce5406 add in testing instance vor 5 Jahren

README.md

Example of calling modules to build an RE environment

Prerequisites

  • aws-cli
  • tfenv
  • ansible

Generate Key Pair

aws ec2 create-key-pair --profile redislabs --key-name maguec1 --region us-west-1 \
| jq .KeyMaterial |  awk '{gsub(/\\n/,"\n")}1' | \
sed -e s/\"//g >> ~/.ssh/maguec1.pem

chmod 0600 ~/.ssh/maguec1.pem

After ansible

# download roles
cd ansible && rm -rf roles/* && ansible-galaxy install --roles-path roles -r requirements.yml
ansible-playbook ansible/cp_nodes.yml --private-key ~/.ssh/maguec1.pem -i inventories/maguec1_all_nodes.ini
ansible-playbook ansible/test_nodes.yml --private-key ~/.ssh/maguec1.pem -i inventories/tester.ini