Commit graph

321 commits

Author SHA1 Message Date
Will Nilges
433c845a35 Use Redis to link VNC tokens to VMID 2022-08-18 19:51:56 -04:00
Will Nilges
aa1c4834f4 Remove deprecated library
No, seriously
2022-08-18 19:51:55 -04:00
Will Nilges
8d4a7d52a9 Remove SSH functionality to Proxmox 2022-08-18 19:51:50 -04:00
Will Nilges
c809d70c68 Remove old TODO 2022-07-29 22:00:02 -04:00
Willard Nilges
2c17d6988f
Update VNC functionality for Proxmox 7 (#148)
Chown `targets`, Add run and kill scripts

Lol Joe figured it out

* Dude it works holy shit

We need to fix some logistical bugs, probably, and also like remove dead
code lol

* Open VNC session on the node that the VM belongs

Figured out why I couldn't open a session on anything but 01. It was
because I was making the API call on proxmox01-nrh. So that's where the
session opened. I hope that by doing this, it will balance the load
(what little there is) from VNC sessions.

* Update websockify-related tasks

* Remove SSH key from build

* Add option to specify VNC port.

Should be 443 for OKD, probably 8081 for development.

This hosts a smattering of fixes, acutally uses gunicorn properly(?),
launches websockify correctly, and introduces MORE DEAD CODE!

TODO: Fix the scheduling system

* Make things not crash as much :)

* Remove obviously dead code

There's still some code in here that may require more careful
extraction, testing, and review, so I'm saving that for another PR.

* Fix Joe's complaints

* Replace hardcoded URL
2022-07-29 20:56:00 -04:00
Willard Nilges
3bad0f003c
Merge pull request #155 from ComputerScienceHouse/willnilges/for-the-badge
Add Python Version badge
2022-07-26 11:49:02 -04:00
Willard Nilges
c0ec5d9814
Add Python Version badge
Because why not?
2022-07-26 11:08:06 -04:00
Willard Nilges
d0c3bdef55
Merge pull request #146 from ComputerScienceHouse/willnilges/generated
Mark schema as generated
2022-06-29 21:00:27 -04:00
Will Nilges
39f77d3f99 Mark schema as generated 2022-06-29 20:55:43 -04:00
Willard Nilges
20cdfc332e
Merge pull request #145 from ComputerScienceHouse/disk-increase
Increase disk allotment
2022-06-29 16:38:41 -04:00
Devin Matte
20f523b2ca Increase disk allotment 2022-06-29 16:33:04 -04:00
Galen Guyer
493fbd13f1
Merge pull request #143 from ComputerScienceHouse/wilnil/datadog
Update + Enable `ddtrace`
2022-06-27 10:17:00 -04:00
Will Nilges
3463a39e46 Add ddtrace 2022-06-25 22:16:26 -04:00
Will Nilges
013b91f2f0 Move schema, clean up postgres dockerfile 2022-06-25 22:09:50 -04:00
Willard Nilges
d016590d2f
Merge pull request #140 from ComputerScienceHouse/wilnil/hacking
Use Dockerfile to make development and deployment easier
2022-06-25 21:45:09 -04:00
Will Nilges
401902b4a9 Move large.sql into the repo 2022-06-25 21:44:40 -04:00
Will Nilges
ce35fc90a0 Make proxstar work in Podman
This is the commit message #4:
Basic functionality works, VNC is still trash fire
Don't use config_local
Add a workdir
RUN touch proxmox_ssh_key, update permissions
Update development instructions
Add some comments to the template file, Make it easier-ish for the kiddos.
2022-06-25 21:43:42 -04:00
Will Nilges
2dbaedde4e Update requirements.txt 2022-06-18 21:55:25 -04:00
Will Nilges
57ab376296 Move "developing" to "HACKING"
It sounds cooler
2022-06-18 21:54:53 -04:00
Will Nilges
be80216eeb
Merge pull request #135 from ComputerScienceHouse/fix-for-2022
Fixing Proxstar for 2022 deps
2022-05-29 20:18:50 -04:00
Devin Matte
a67380c500 Removing .items() 2022-05-28 19:03:13 -04:00
Devin Matte
7a2c3374ca Update to latest noVNC 2022-05-28 18:20:04 -04:00
Devin Matte
971599027f Update Flask pin 2022-05-28 15:42:11 -04:00
Devin Matte
f81a3914f3 Add ddtrace for datadog monitoring 2022-05-28 15:30:26 -04:00
Devin Matte
cfa8323f28 Pinning markupsafe 2022-05-28 15:21:29 -04:00
Devin Matte
a6f446f0cf Fixing version pinning 2022-05-28 14:43:55 -04:00
Devin Matte
9d2eec92cb Reverting rq changes, pinning click 2022-05-28 14:38:22 -04:00
Devin Matte
7bf18eea74 Updating rq and sentry 2022-05-28 14:34:49 -04:00
Devin Matte
62490d6858 Fixing black and pylint 2022-05-28 14:28:26 -04:00
Devin Matte
d660549200
Fix dep version 2022-05-27 15:34:26 -04:00
Devin Matte
d0794c9fa5
Update apt before installing deps 2022-05-27 15:33:19 -04:00
Devin Matte
9d4b793a87
Pin jinja2 version
Pin to last of 2.x
2022-05-27 15:29:56 -04:00
Galen Guyer
6f79b96a83
Merge pull request #131 from erwijet/master
update jquery CDN
2022-04-13 19:56:44 -04:00
Tyler Holewinski
2647aa8474
update jquery CDN 2022-04-13 19:56:06 -04:00
Will Nilges
8e5f173a94
Merge pull request #111 from harmonherring/boot-order
Boot order handling
2021-11-11 19:25:21 -05:00
Will Nilges
d36a5a3355 Add volume to proxstar-postgres 2021-10-21 00:14:18 -04:00
Will Nilges
6ab066d5b6 Fix docker bad practice 2021-10-21 00:14:18 -04:00
Will Nilges
48e4b6e820 Elaborate on LDAP DN details 2021-10-21 00:14:18 -04:00
Will Nilges
e3783a4919 Move schema to homedir, add more docs
Update configs
2021-10-21 00:14:11 -04:00
Will Nilges
33a8cdb523 Expand options to not use starrs. 2021-10-21 00:14:11 -04:00
Will Nilges
c641ba1d1c Update Postgres container w/ required starrs pkgs
Streamline creation of database

The user no longer has to configure the database by themself.
2021-10-21 00:14:04 -04:00
Will Nilges
74a0990997 Fix hardcoded variables, tweak schema/dockerfile
Change config.local.py to config_local.py

Fix 2AM Willard Moments™

Made a few errors last night that should be corrected.
2021-10-21 00:13:54 -04:00
Will Nilges
262b5b10eb Add schemas for development databases
These schemas need to be imported for development purposes.

Update Database schemas, add docker compose
2021-10-21 00:13:35 -04:00
Will Nilges
b3300de18e Add Docker Compose for development
Spins up Redis and Postgres for development purposes
2021-10-02 17:25:00 -04:00
Will Nilges
68f9fd491d Draft instructions for full proxstar dev environ
A comprehensive™ instruction booklet for setting up your own instance of
Proxstar to mess around with. This is _roughly_ what I had to do to get
this all working.
2021-10-02 17:20:12 -04:00
Harmon Herring
9ae763e6ea Remove disabled boot devices from boot order display
Disabled boot devices will no longer show up in the boot order
display on the vm details page in the resources section.
2021-06-18 00:45:40 -04:00
Harmon Herring
b9860a10ff Update UI boot order selection element
Update the UI boot order selection element. It has been modified to
support the new 'order=' format for the Proxmox boot order option
in a more intuitive way for the user. The new element allows users
to enable any bootable device and choose the order for these
devices to boot in.

The new UI element is a table with four columns. The first column
indicates the order of the corresponding device. The second column
indicates whether the device is enabled as bootable. The third
column contains the device name. The fourth column contains the
device description. The order of the columns is changed by
dragging, enabled by SortableJS.

In cases of legacy nodes, the older dropdown boxes are used.
2021-06-18 00:09:22 -04:00
Harmon Herring
fae4e9f059 Clean VM boot order code 2021-06-10 18:06:10 -04:00
Harmon Herring
085f5c09d8 Update format of VM boot order JSON
Change format of the VM boot order JSON. This new format allows
the UI to mimic the Proxmox boot order selection system.

The new format is as follows
{
  'legacy': False,
  'order': [
    {
      'device': 'virtio0',
      'description': 'local-lvm:vm-102-disk-0,size=8G',
      'enabled': True
    },
    ...
  ]
}
2021-06-10 17:05:37 -04:00
Harmon Herring
6da1095d1c Propose new boot order to users
Propose new boot order to owners of VMs that exist on nodes
running Proxmox version 6.3 or greater.

Instead of returning the legacy boot order to the UI, a new boot
order is created and sent instead. The new order mimics the old
order, but is compliant with the new format. The new order will
take effect only if the user explicitly updates.
2021-05-27 19:21:06 -04:00