capstone.proxmox.iso_downloader
Description: This module is responsible for downloading the latest ISO for Proxmox VE and verifying it hasn't been tampered with using via SHA-256 checksum.
get_iso_folder_path(iso_name)
Get the full path for the Proxmox ISO folder in the ISO directory.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
iso_name
|
str
|
The name of the ISO file. |
required |
Returns:
Name | Type | Description |
---|---|---|
Path |
Path
|
The full path to the ISOs folder. |
Source code in capstone/proxmox/iso_downloader.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
|
get_latest_proxmox_iso_url(url='https://www.proxmox.com/en/downloads/proxmox-virtual-environment')
Fetches the latest Proxmox VE ISO download URL and its SHA-256 checksum.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
url
|
str
|
The Proxmox downloads page URL. Defaults to the official |
'https://www.proxmox.com/en/downloads/proxmox-virtual-environment'
|
Returns: tuple[str, str]: A tuple containing the ISO download URL and its SHA-256 checksum. This is empty i.e. ("", "") on failure.
Source code in capstone/proxmox/iso_downloader.py
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
|
main()
Main Entry point for the Proxmox ISO downloader module.
Source code in capstone/proxmox/iso_downloader.py
168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 |
|
validate_iso_url(url)
Validates the Proxmox VE ISO URL format.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
url
|
str
|
The ISO download URL to validate. |
required |
Returns:
Name | Type | Description |
---|---|---|
bool |
bool
|
True if the URL is valid, False otherwise. |
Source code in capstone/proxmox/iso_downloader.py
47 48 49 50 51 52 53 54 55 56 57 58 |
|