Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Go-agent set up steps
  • Choose some inventory file and add go-agent host entry with the right ipaddress
  •  Run the go-agent play on playbook
                ansible-playbook go.yml -i <<inventory_file>> -t go-agent --vault-password-file ~/.vaultpass.txt -k -vvvv
  • For prod and pre-prod envs
               ansible-playbook go.yml -i <<inventory_file>> -t go-agent --extra-vars="location=prod" --vault-password-file ~/.vaultpass.txt -k -vvvv
               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 the secret key from our google-drive  to decrypt the encrypted seed data to ~/secret-key
  •  Generate SSH keys on the new go-agent
                ssh-keygen -t rsa
  •  Attempt to SSH from the go-agent box into all the configured hosts.Enter “yes” when prompted for “Are you sure connecting…"
  •  Copy go keys from the agent box to all the hosts of the respective environment.
               ansible-playbook all.yml -i <<inventory_file>> -t copy-go-keys --vault-password-file ~/.vaultpass.txt -vvvv -k
  • No labels