Skip to content

Latest commit

 

History

History
87 lines (74 loc) · 2.58 KB

README.md

File metadata and controls

87 lines (74 loc) · 2.58 KB

Setup Proxmox

Run the command in the terminal:

# The default inventory is "home".
ansible-playbook proxmox.yml
ansible-playbook proxmox.yml -i "inventory/home"
ansible-playbook proxmox.yml -i "inventory/homelab"

Tasks:

1. Setup email notification with Postfix.

  1. Add the SMTP server, user name and password into the sasl_passwd file.
  2. Add relayhost into the main.cf file.
  3. Add SASL authentication into the main.cf file.

2. Remove the no subscription popup.

  1. Replace the verification with a if (false).

3. Create the cluster and join the nodes into it.

  1. Create the cluster.
  2. Add nodes to the cluster.
  3. Add the fingerprint of each host into the ~/.ssh/known_hosts file:
  pve-01.lan.homelab ecdsa-sha2-nistp256 ...
  pve-02.lan.homelab ecdsa-sha2-nistp256 ...
  pve-03.lan.homelab ecdsa-sha2-nistp256 ...
  pve-04.lan.homelab ecdsa-sha2-nistp256 ...
  pve-05.lan.homelab ecdsa-sha2-nistp256 ...
  pve-06.lan.homelab ecdsa-sha2-nistp256 ...
  pve-07.lan.homelab ecdsa-sha2-nistp256 ...

4. Set the network for all migrations in the cluster.

  1. Add the ip address that should be used for all migrations into the /etc/pve/datacenter.cfg file.

5. Format the HDD, SSD and NVME disks.

  1. Extend the data partition to 100% of the free space.
  2. Remove partitions from disks.
  3. Create new partitions, volume groups and logical volumes on the local disks.

6. Create the resource pools.

  1. Template, Staging and Production.

7. Create the Roles.

  1. Packer.

8. Clear / Destroy the CEPH Storage.

systemctl stop ceph-mon.target
systemctl stop [email protected]
systemctl stop [email protected]
systemctl stop ceph-mgr.target
systemctl stop [email protected]
systemctl stop [email protected]
systemctl stop ceph-mds.target
systemctl stop [email protected]
systemctl stop [email protected]
systemctl stop ceph-osd.target
systemctl stop [email protected]
systemctl stop [email protected]
systemctl stop ceph.target
systemctl stop ceph-crash.service
rm -rf /etc/systemd/system/ceph*
killall -9 ceph-mon ceph-mgr ceph-mds
rm -rf /var/lib/ceph/*
pveceph purge
apt-get purge ceph-mon ceph-mgr ceph-mds ceph-osd -y
apt-get purge ceph-base ceph-mgr-modules-core -y
rm -rf /etc/ceph/* /etc/pve/ceph.conf /etc/pve/priv/ceph.*
apt-get autoremove -y
lvremove -y /dev/ceph*
vgremove -y ceph- <tab>
pvremove /dev/nvme0n1
touch '/please-remove-proxmox-ve'
apt remove -y proxmox-ve
apt autoremove -y
apt install -y proxmox-ve

Created by:

  1. Luciano Sampaio.