Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Go-agent set up steps- Run
  • Choose some inventory file and add go-agent host entry with the right ipaddress
  •  Run the go-agent play on playbook
                ansible-playbook all.yml -i stg <<inventory_file>> -t go-agent --vault-password-file ~/.vaultpass.txt -k -vvvv
  • For prod and pre-prod envs
               ansible-playbook all.yml -i <<inventory_file>> -t go-agent --extra-vars="location=prod" --vault-password-file ~/.vaultpass.txt -k -vvvv- Copy
               This copies the ansible-deploy.sh file present in the prod folder of playbooks, which combines prod configs with our playbooks.
  •  Copy the appropriate vault password to ~/.vaultpass.txt
- Download
  •  Download the secret key from our google-drive  to decrypt the encrypted seed data to ~/secret-key
- Generate
  •  Generate SSH keys on the new go-agent
   ssh                ssh-keygen -t rsa
- Attempt
  •  Attempt to SSH from the go-agent box into all the configured hosts.Enter “yes” when prompted for “Are you sure connecting…"
- Copy
  •  Copy go keys from the agent box to all the hosts of the respective environment.
               ansible-playbook all.yml -i stg -t copy-go-keys --vault-password-file ~/.vaultpass.txt -vvvv -k