Aucune description

Chris Mague 3f246dfbcc pudate node config il y a 5 ans
ansible 3f246dfbcc pudate node config il y a 5 ans
.gitignore d594b3c195 build and install redis server version 6.0 il y a 5 ans
.terraform-version 0077fc9141 initial il y a 5 ans
README.md 3f246dfbcc pudate node config il y a 5 ans
inputs.tf 118fce5406 add in testing instance il y a 5 ans
maguec1.tfvars 3f246dfbcc pudate node config il y a 5 ans
main.tf 3f246dfbcc pudate node config il y a 5 ans
variables.tf 118fce5406 add in testing instance il y a 5 ans

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 /tmp/maguec1_all_nodes.ini
ansible-playbook ansible/test_nodes.yml --private-key ~/.ssh/maguec1.pem -i /tmp/tester.ini