#!/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. # # Network # Bridges ? XXX # Set up static IPs on each interface in Proxmox web gui # cd /etc ; git add . ; git commit -a -m 'Configure ethernet addresses' # Reboot! # Configure Corosync # Set up hosts # XXX MAKE SURE NEW NODES GET ADDED TO EXISTING SERVER /etc/hosts cat > /etc/hosts < storage # and add and RDB (PVE) container/images # # XXX # Reinstall if things go bad: /etc/init.d/ceph stop ; apt -y purge ceph ceph-base ceph-mgr ceph-mon ceph-osd ; apt -y autoremove --purge ; mv /var/lib/ceph/ /var/lib/foobar-ceph ; rm -rf /etc/pve/ceph* /etc/ceph/ceph.conf /etc/pve/priv/ceph* /etc/systemd/system/ceph-mon.target.wants /etc/systemd/system/ceph-mon.target.wants/ceph-mon@sf-001.service /etc/ceph/ceph.client.admin.keyring apt -y --reinstall install ceph-common # rm stuff that isn't in ceph-common find /etc -name "*ceph*" pveceph install # XXX # MISC # Data Center --> 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 #