#!/bin/bash # forksand-sf-proxmox # GPLv3+ # This script does some initial setup and config # Sets up Proxmox. # XXX DRAFT XXX exit 0 # Run this on workstation: # ssh -N -C -L 18021:localhost:8006 sf-001 # ssh -N -C -L 18022:localhost:8006 sf-002 # ssh -N -C -L 18023:localhost:8006 sf-003 # ssh -N -C -L 18024:localhost:8006 sf-004 # Only logging into one at a time is possible. Session management :| XXX # firefox https://localhost:18021 # firefox https://localhost:18022 # firefox https://localhost:18023 # firefox https://localhost:18024 # # Login as root user via PAM # Set up Enterprise Key, if used # # cd /etc ; git add . ; git commit -a -m 'Initial Proxmox configuration' # # # XXX Set up vmbr0 via web interface. # # Netwok # sf-004 (host) --> System --> Network # Fix subnet mask, IP in web gui. # Create --> Linux Bridge: # vmbr0 # XXX best way for this server? No subnet. # # Set up ethernet ports # XXX check name Disable enp2s0 (Autostart no) # set up vmbr0 to the main IP, gateway, etc. # Create Linux Bridge in web interface # vmbr0 #XXX THIS ISN'T CORRECT IP # 174.128.244.192/26 # 255.255.255.192 # Autostart # VLAN Aware # Bridge: enp2s0 # Comment Main bridge # # Set up 10.3.1.0 and 10.99.1.0 networks statically # on secondary ethernet interfaces # Reboot! sf-004 (host) --> Restart # Configure Corosync # Set up hosts # XXX MAKE SURE NEW NODES GET ADDED TO EXISTING SERVER /etc/hosts cat > /etc/hosts < Permissions --> Users # Add user with Realm Proxmox VE authentication server. # Give user root permissions: Datacenter --> Permissions --> Add --> User permission. # Path: / User: j Role: Administrator # XXX Or create admin group, add perms to that... # Permissions --> Authentication. Set Proxmox VE authentication server to default. # Storage # Datacenter --> Storage --> Edit local. Enable all content (add VZDump) # # DNS # sf-003 (host) --> System --> DNS # Add servers: # 208.67.222.222 208.67.220.220 37.235.1.174 # # XXX Ceph