Git Product home page Git Product logo

ansible-prometheus's Introduction

DevOps IaC Project

digram drawio (5)

Automated web server setup with ansible. (Locally with vm's)

Welcome to an another project In this project, we will automate the setup of a web server environment using Ansible. We will utilize Vagrant to launch three virtual machines: one master server and two web servers. The master server will be provisioned using Ansible to set up Prometheus monitoring and nginx load balancing. Afterwards, we will provision both web servers using Ansible playbooks.

By automating the setup process, we can ensure consistent and efficient deployment of the web server environment. Ansible will handle the configuration and installation of Prometheus for monitoring the servers and nginx for load balancing. Vagrant provides a convenient way to manage the virtual machines locally.

Overall, this project aims to streamline the setup and configuration of a web server environment by leveraging Ansible's automation capabilities, Vagrant for VM management, Prometheus for monitoring, and nginx for load balancing.

Clone this repo into your master vm goto "../provision/ansible/" directory run the master and web ansible playbook to setup the complete serup.

NOTE: Everything has to be in containerized.

In master server we will setup:

  • docker
  • portainer-CE
  • prometheus
  • nginx
  • grafana

web server:

  • Setup one apache2 web server each
  • portainer agent
  • node exposed full & cadvisor in docker

Goals:

  • we want these two web server to load balancing with each other's using nginx
  • monitor all the hosts with prometheus and grafana included docker container's monitoring.
  • setup alerting for any error e.g host down, disk goes above 80% etc.

Flow of execution to achive this goal.

  • vagrant will launch all three vm's (1 master, 2 web server)
  • provision master server with ansible
  • provision our both web server's using ansible playbook's

ansible-prometheus's People

Contributors

asifcopilot avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.