Skip to content

Vault cluster demo using Consul cluster for HA deployed with Ansible on Vagrant Fedora VMs

Notifications You must be signed in to change notification settings

pantovad/vault-HA-fedora

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Some of the common requirements of IT infrastructures are the following services:

  • configuration management
  • service discovery and availability management
  • passwords/secrets management
  • continous deployment management

Surely, such services would need to meet the common requirements of an enterprise environment including high availability, scalability, security, auditing. This demo presents a solution based on some cool free open source products (MPL/GPL licences) responding exactly to such requirements in an elegant and lightweight way.

The demo uses Ansible to create Vault cluster using Consul cluster as HA capable backend. Clusters are deployed on the three cloud FC23 boxes hosted on Vagrant managed VMs. In addition, Apache HTTPD with PHP beside Consul client are installed on the fourth Vagrant VM serving a demo web page in order to demonstrate usage of Vault ("userpass" authentication used). A proper security assessment would need to be done for production deployment and required tasks accomplished accordingly (Consul authn/authz, SSL all accross with cert verification and integration to PKI, segragation of public and private networks, firewall/iptables etc.).

alt tag

Instructions

Prepare the FC23 host

  • Install required software (as root) with: dnf -y install vagrant-libvirt ansible
  • Add your user account to libvirt unix group (/etc/group)
  • Add FC23 cloud box for libvirt (use your own account): vagrant box add https://download.fedoraproject.org/pub/fedora/linux/releases/23/Cloud/x86_64/Images/Fedora-Cloud-Base-Vagrant-23-20151030.x86_64.vagrant-libvirt.box --name fedora-23

Run the demo

  • Get the repository to your host and within the repository root folder where Vagrantfile and demo.yml are located execute: vagrant up
  • Upon successfull Ansible play run a web browser on the host hosting Vagrant VMs and access the demo web page on: http://192.168.100.104/secret.php. Follow the instructions (username and password are set in the vars section of the client role).

About

Vault cluster demo using Consul cluster for HA deployed with Ansible on Vagrant Fedora VMs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages