This project is done by : Vanujan SELVARAJAH & Andritsara CHAN PENG
The goal of this project is to deploy a WordPress website on our own server.
- Create an Ansible playbook to enable the installation of a WordPress website on our server, for that we will use a tutoriel from this website "https://dotlayer.com/how-to-use-an-ansible-playbook-to-install-wordpress/"
- Create a server on Scaleway with Terraform
- Create an image with Packer
- cd cloud-courses/ansible/
- Run ansible -m ping all -i hosts to test if we can connect to the server by pinging it with Ansible
- Run ansible-playbook playbook.yml -i hosts -u root -K
- Verify by typing on the browser the IP address of our server, and verify that there is a WordPress Site
- cd cloud-courses
- Run terraform init
- Run terraform plan
- Run terraform apply
- Verify in our scaleway account that the server has been created sucesfully
- cd cloud-courses/ansible (because we are gonna use our playbook.yml file as provisionners)
- Run packer validate template.json (to verify if our template.json file is configurate correctly)
- Run packer build template.json
- Verify in our scaleway account that the image has been created succesfully