No description
Find a file
2018-04-07 16:29:45 +03:00
db separate cpu/mem/hdd tuple 2017-07-30 23:23:09 +03:00
log add log placeholder 2018-03-11 01:37:16 +02:00
tools rand vnc port from 7000 to 7999, deamonizing websockets and avoid zombies 2018-03-10 04:40:58 +02:00
.gitignore add log placeholder 2018-03-11 01:37:16 +02:00
config.ini.dist simplify grid by removing the region 2018-04-02 15:30:42 +03:00
grid.py rand vnc port from 7000 to 7999, deamonizing websockets and avoid zombies 2018-03-10 04:40:58 +02:00
ioconfig.py First. 2016-02-15 12:30:43 +02:00
nginx-vhost-ssl.txt vnc ssl support 2016-11-11 16:56:35 +02:00
nginx-vhost.txt vnc ssl support 2016-11-11 16:56:35 +02:00
novnc.py rand vnc port from 7000 to 7999, deamonizing websockets and avoid zombies 2018-03-10 04:40:58 +02:00
plugin.py add unknown status to the status url 2018-04-07 16:29:45 +03:00
proxmaster.py change motd 2018-03-18 14:54:20 +02:00
proxmaster.service fix systemd autostart of uwsgi 2018-03-11 02:39:02 +02:00
README.md fix systemd autostart of uwsgi 2018-03-11 02:39:02 +02:00
requirements.txt phyidgen function 2017-10-27 18:17:01 +03:00
runwebsockify.py First. 2016-02-15 12:30:43 +02:00
utils.py fixing various bugs 2016-04-01 02:37:21 +03:00

#Proxmaster Python RESTful API for managing a grid of vm slaves

##Installation instructions:

  1. virtualenv -p python3 appserver
  2. source appserver/bin/activate
  3. cd appserver
  4. git clone https://deflax@bitbucket.org/deflax/proxmaster.git
  5. cd proxmaster
  6. pip3 install -r requirements.txt
  7. create nginx vhost and configuration file via the provided template files:
  • config.ini.dist
  • nginx_example_vhost.txt
  1. cp proxmaster.service /etc/systemd/system/proxmaster.service ; systemctl enable proxmaster.service

##Security

  1. make sure this iptables rule is included: iptables -A tcp_inbound -p TCP --match multiport --dports 7000:9999 -j ACCEPT #vnc range
  2. apt install letsencrypt
  3. generate letsencrypt cert using letsencrypt tool and add 00 00 1 * * root /etc/init.d/nginx stop && letsencrypt renew && /etc/init.d/nginx start to /etc/crontab
  4. chmod 705 /etc/letsencrypt/archive ; chmod 705 /etc/letsencrypt/live

##Proxmox slave install instructions:

  1. Datacenter -> Permissions -> Add -> User Permission
  2. Path: / User: masteradmin@pve / Role: Administrator
  3. $IPT -A tcp_inbound -p TCP -s $PROXIP -j ACCEPT #enable proxmaster
  4. Datacenter -> Storage -> Add -> LVM
  5. ID: lvm / Volume Group: vm / Content: Disk image, Container
  6. Datacenter -> Storage -> Add -> NFS
  7. ID: skyblue / Server: 1.2.3.5 / Export: /srv/proxmox/slavename / Content: ISO Image, VZDump backup site
  8. echo 1 > /proc/sys/kernel/dmesg_restrict