2016-02-15 05:30:43 -05:00
|
|
|
#Proxmaster
|
|
|
|
Python RESTful API for managing a grid of vm slaves
|
|
|
|
|
|
|
|
##Installation instructions:
|
2018-03-10 18:23:47 -05:00
|
|
|
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:
|
2016-02-15 05:30:43 -05:00
|
|
|
- config.ini.dist
|
|
|
|
- nginx_example_vhost.txt
|
2018-03-10 19:39:02 -05:00
|
|
|
8. cp proxmaster.service /etc/systemd/system/proxmaster.service ; systemctl enable proxmaster.service
|
2018-03-10 18:23:47 -05:00
|
|
|
|
2018-03-10 19:39:02 -05:00
|
|
|
##Security
|
|
|
|
1. make sure this iptables rule is included:
|
2018-03-10 18:23:47 -05:00
|
|
|
iptables -A tcp_inbound -p TCP --match multiport --dports 7000:9999 -j ACCEPT #vnc range
|
2018-03-10 19:39:02 -05:00
|
|
|
2. apt install letsencrypt
|
|
|
|
3. generate letsencrypt cert using letsencrypt tool and add
|
2017-07-19 15:15:51 -04:00
|
|
|
00 00 1 * * root /etc/init.d/nginx stop && letsencrypt renew && /etc/init.d/nginx start
|
|
|
|
to /etc/crontab
|
2018-03-10 19:39:02 -05:00
|
|
|
4. chmod 705 /etc/letsencrypt/archive ; chmod 705 /etc/letsencrypt/live
|
2016-12-07 20:11:34 -05:00
|
|
|
|
2017-02-28 19:56:03 -05:00
|
|
|
##Proxmox slave install instructions:
|
2016-11-03 10:01:11 -04:00
|
|
|
1. Datacenter -> Permissions -> Add -> User Permission
|
2017-11-05 15:21:06 -05:00
|
|
|
2. Path: / User: masteradmin@pve / Role: Administrator
|
2016-11-03 10:01:11 -04:00
|
|
|
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
|
2016-11-03 10:48:47 -04:00
|
|
|
6. Datacenter -> Storage -> Add -> NFS
|
|
|
|
7. ID: skyblue / Server: 1.2.3.5 / Export: /srv/proxmox/slavename / Content: ISO Image, VZDump backup site
|
2017-02-28 19:56:03 -05:00
|
|
|
8. echo 1 > /proc/sys/kernel/dmesg_restrict
|
|
|
|
|