Sem descrição

Chris Mague 45a1c728af enable consul ui há 5 anos atrás
ansible 45a1c728af enable consul ui há 5 anos atrás
.gitignore 5f862eb404 start consul setup há 5 anos atrás
.terraform-version 0077fc9141 initial há 6 anos atrás
README.md 179521048f setup using memory mode há 5 anos atrás
inputs.tf 118fce5406 add in testing instance há 5 anos atrás
maguec1.tfvars 3f246dfbcc pudate node config há 5 anos atrás
main.tf 354d9b2699 auto generate the output script há 5 anos atrás
raft_group_setup.tpl 354d9b2699 auto generate the output script há 5 anos atrás
variables.tf 118fce5406 add in testing instance há 5 anos atrás

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

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