Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mihailo222/privatedatacenter
Using Vagrant for setting up Virtual Box VM. Configuring DNS server, web servers, HA MySQL cluster. Automating configuration process with Ansible. Automating more parameters with python scripts (e.g. domain names, IP addresses, hosts names...)
https://github.com/mihailo222/privatedatacenter
ansible python vagrant
Last synced: about 1 month ago
JSON representation
Using Vagrant for setting up Virtual Box VM. Configuring DNS server, web servers, HA MySQL cluster. Automating configuration process with Ansible. Automating more parameters with python scripts (e.g. domain names, IP addresses, hosts names...)
- Host: GitHub
- URL: https://github.com/mihailo222/privatedatacenter
- Owner: Mihailo222
- Created: 2024-04-01T15:53:40.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-09-02T19:34:06.000Z (2 months ago)
- Last Synced: 2024-10-13T23:21:19.206Z (about 1 month ago)
- Topics: ansible, python, vagrant
- Language: Python
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Private Data Center
![Screenshot (1437)](https://github.com/Mihailo222/PrivateDataCenter/assets/92820769/b2275bb9-3750-4acd-874a-479711f236e7)
Project simulates a data center containing five virtual machines running Ubuntu22.04 Linux distribution. The setup includes DNS server, two web servers and two servers that represent a database cluster.
**DNS server** is configured with bind9 service, where I achieved translation of IP addresses to a domain names for two web sites that are hosted on a same web server. DNS server contains a zones configured for both web sites.
On **web servers** I configured Apache2 Virtual Hosting service. Virtual hosting is a solution for hosting multiple web sites on a same server, what I achieved. At the application layer I installed **WordPress software** and configured WordPress admins for both web sites. WordPress web sites are connected with database cluster with **MySQL client**.
For a database I chose to configure **Percona Xtradb Cluster** - High Availability Solution for MySQL. What I achieved here is master and slave server synchronized to work as one. The entire cluster has a virtual IP address that is configured with keepalived service. Communication between servers in a cluster is encrypted.
So, why we need two web servers? My plan is to make a web application that moves whole configuration from one server to another if one server is attacked. This is left for future implementation. The entire configuration is automated with python scripts, so if there is a need for changing some basic parameters as domain name, IP address, database name etc. I don’t need to do it in every single file manually.