This repository will help you install Mediawiki on AWS in fully automated fashion using Terraforma, AWS cli and Ansible.
Terraform is responsible for provisioning infrastructure on AWS while Ansible helps install Mediawiki.
- Traffic arrives on load balancer and get routed to web servers in public subnet
- Web servers can only make calls to DB server in private subnet
- Media Wiki installation steps link
- Enabling keyless authentication link
- Enabling passwordless sudo link
Please refer to file - master-setup-script.sh
chmod 700 master-setup-script.sh
./master-setup-script.sh
terrform plan
terraform apply
terraform destroy
ansible-playbook -i non-production master-install-mediawiki.yaml
- Open /etc/ansible/ansible.cfg
- Update setting "vault_password_file" to point to a file where vault password is stored
- Reference
- Check python version of destination machines. If version <= 3 then please comment "ansible_python_interpreter" in group_vars
- Check if destination machine does not prompt during package upgrade. In my case grub prompt halted my ansible execution.
- Pre-bake your image and provide ami-id in terraform.tfvars
For any questions, please write to me at visharad.dhavle[at].gmail.com