dinomite / proxmox-ve-cluster-vagrant

a 3-node proxmox-ve cluster wrapped in a vagrant environment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a 3-node proxmox-ve cluster wrapped in a vagrant environment.

Each node has the following components and is connected to the following networks:

The second node (pve2.example.com) is running:

Usage

Build and install the proxmox-ve Base Box.

Add the following entries to your /etc/hosts file:

10.1.0.254 example.com
10.1.0.201 pve1.example.com
10.1.0.202 pve2.example.com
10.1.0.203 pve3.example.com

Install the following Vagrant plugins:

vagrant plugin install vagrant-reload   # see https://github.com/aidanns/vagrant-reload

Run vagrant up --provider=libvirt (or --provider=virtualbox) to launch the 3-node cluster.

Trust the Example CA. If your host is Ubuntu based, run, in a bash shell:

# for OpenSSL based applications (e.g. wget, curl, http):
sudo cp shared/example-ca/example-ca-crt.pem /usr/local/share/ca-certificates/example-ca.crt
sudo update-ca-certificates -v
# for NSS based applications (e.g. chromium, chrome):
# see https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/Tools
sudo apt install -y libnss3-tools
certutil -d sql:$HOME/.pki/nssdb -A -t 'C,,' -n example-ca -i shared/example-ca/example-ca-crt.pem
certutil -d sql:$HOME/.pki/nssdb -L
#certutil -d sql:$HOME/.pki/nssdb -D -n example-ca # delete.
# for legacy NSS based applications (e.g. firefox, thunderbird):
for d in $HOME/.mozilla/firefox/*.default $HOME/.thunderbird/*.default; do
  certutil -d dbm:$d -A -t 'C,,' -n example-ca -i shared/example-ca/example-ca-crt.pem
  certutil -d dbm:$d -L
  #certutil -d sql:$d -D -n example-ca # delete.
done

If your host is Windows based, run, in a Administrator PowerShell shell:

Import-Certificate `
    -FilePath shared/example-ca/example-ca-crt.der `
    -CertStoreLocation Cert:/LocalMachine/Root

Access the Proxmox Web Administration endpoint at either one of the nodes, e.g., at https://pve1.example.com:8006.

Login as root and use the vagrant password.

Reference

About

a 3-node proxmox-ve cluster wrapped in a vagrant environment


Languages

Language:Shell 100.0%