Now that we have our Proxmox server up and running, we need to set up our local development environment to manage it. This section covers the installation of essential DevOps tools that will allow us to:
- Automate infrastructure deployment using Ansible
- Manage infrastructure as code with Terraform
- Version control our configurations using Git
- Securely access our Proxmox server via SSH
Choose the setup instructions below that match your local operating system. After installation, we'll configure SSH keys for secure remote access and verify that everything is working correctly.
Note: These tools will be installed on your local machine, not the Proxmox server. They allow you to manage your Proxmox infrastructure remotely.
MacOS Setup
Install required tools using Homebrew:
# Install Homebrew if not already installed
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install required packages
brew install ansible
brew install terraform
brew install python3
brew install git
Linux Setup (Ubuntu/Debian)
Install required packages:
sudo apt update
sudo apt install -y ansible python3-pip git
sudo apt install -y software-properties-common
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt update
sudo apt install terraform
Windows Setup
Install required tools using PowerShell:
# Install Chocolatey if not already installed
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# Install required packages
choco install ansible
choco install terraform
choco install python3
choco install git
Common Configuration Steps
Next Steps
Now that you have installed the required tools for your operating system, the following steps are common across all environments. These steps will set up secure access to your Proxmox server and verify that everything is working correctly.
SSH Key Configuration
Generate and configure SSH keys for remote access:
# Generate SSH key pair
ssh-keygen -t ed25519 -C "[email protected]"
# Copy public key to Proxmox server
ssh-copy-id root@your-proxmox-ip
Verify Installation
Verify that all tools are installed correctly:
ansible --version
terraform --version
python3 --version
git --version
# Test SSH connection
ssh root@your-proxmox-ip