项目作者: lukassup

项目描述 :
HAProxy demo with Vagrant
高级语言: Shell
项目地址: git://github.com/lukassup/haproxy-demo.git
创建时间: 2017-07-25T19:11:50Z
项目社区:https://github.com/lukassup/haproxy-demo

开源协议:

下载


HAProxy Vagrant demo

  1. +
  2. | http/https
  3. |
  4. +-----------+-----------+
  5. | |
  6. | HA proxy |
  7. | |
  8. +------+-----------+----+
  9. http/https | | http/https
  10. +-------------+---+ +---+--------------+
  11. | | | |
  12. | httpd | | httpd |
  13. | | | |
  14. +-----------------+ +------------------+

(graph created with asciiflow)

This demo features a HAProxy HTTP load balancer and two Apache httpd servers on CentOS 7.

Virtualization: libvirt / KVM

Prerequisites

Usage

  1. Generate certificates and keys with CloudFlare SSL

    1. $ ./init-pki.sh
  2. Create and provision virtual machines with Vagrant

    1. $ vagrant up
  3. Visit https://balancer-1/ and
    https://balancer-1/haproxy-status in
    your browser.