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 2 Next »

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 all.yml -i <<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
               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 stg -t copy-go-keys --vault-password-file ~/.vaultpass.txt -vvvv -k
  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.