make URL to use for downloading authorized_keys file configurable
This commit is contained in:
		
					parent
					
						
							
								ab47e4f43c
							
						
					
				
			
			
				commit
				
					
						07abc842f0
					
				
			
		
					 2 changed files with 10 additions and 8 deletions
				
			
		
							
								
								
									
										15
									
								
								README.md
									
										
									
									
									
								
							
							
						
						
									
										15
									
								
								README.md
									
										
									
									
									
								
							|  | @ -12,13 +12,14 @@ The following settings are available for configuration by setting the respective | ||||||
| Verify that the configured settings are suitable for the cluster you want to create the template for.   | Verify that the configured settings are suitable for the cluster you want to create the template for.   | ||||||
| If left unset, the respective default value will be used. | If left unset, the respective default value will be used. | ||||||
| 
 | 
 | ||||||
| | Variable  | Default                                 | Description                                                            | | | Variable              | Default                                                                                               | Description                                                            | | ||||||
| | --------- | --------------------------------------- | ---------------------------------------------------------------------- | | | --------------------- | ----------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- | | ||||||
| | `VMID`    | 9023                                    | ID the template should have in Proxmox                                 | | | `VMID`                | 9023                                                                                                  | ID the template should have in Proxmox                                 | | ||||||
| | `STORAGE` | `local-zfs`                             | Pool the disks should be created in                                    | | | `STORAGE`             | `local-zfs`                                                                                           | Pool the disks should be created in                                    | | ||||||
| | `OS`      | `debian-12`                             | `virt-builder` name of the OS to install                               | | | `OS`                  | `debian-12`                                                                                           | `virt-builder` name of the OS to install                               | | ||||||
| | `NAME`    | `chaos-${OS}-tmpl-$(date -u +%Y-%m-%d)` | name of the template                                                   | | | `NAME`                | `chaos-${OS}-tmpl-$(date -u +%Y-%m-%d)`                                                               | name of the template                                                   | | ||||||
| | `BRIDGE`  | `vmbr0,tag=208`                         | name of the bridge to use and any parameters needed, like the VLAN tag | | | `BRIDGE`              | `vmbr0,tag=208`                                                                                       | name of the bridge to use and any parameters needed, like the VLAN tag | | ||||||
|  | | `AUTHORIZED_KEYS_URL` | `https://git.hamburg.ccc.de/CCCHH/infrastructure-authorized-keys/raw/branch/trunk/authorized_keys`    | URL to download the authorized_keys file to use from                   | | ||||||
| 
 | 
 | ||||||
| ### User Account, sshd, and `authorized_keys` | ### User Account, sshd, and `authorized_keys` | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -10,6 +10,7 @@ | ||||||
| : "${OS:=debian-12}" | : "${OS:=debian-12}" | ||||||
| : "${NAME:=chaos-${OS}-tmpl-$(date -u +%Y-%m-%d)}" | : "${NAME:=chaos-${OS}-tmpl-$(date -u +%Y-%m-%d)}" | ||||||
| : "${BRIDGE:=vmbr0,tag=208}" | : "${BRIDGE:=vmbr0,tag=208}" | ||||||
|  | : "${AUTHORIZED_KEYS_URL:=https://git.hamburg.ccc.de/CCCHH/infrastructure-authorized-keys/raw/branch/trunk/authorized_keys}" | ||||||
| 
 | 
 | ||||||
| set -eE | set -eE | ||||||
| 
 | 
 | ||||||
|  | @ -27,7 +28,7 @@ cleanup() { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| wget -4 https://git.hamburg.ccc.de/CCCHH/infrastructure-authorized-keys/raw/branch/trunk/authorized_keys -O authorized_keys | wget -4 "$AUTHORIZED_KEYS_URL" -O authorized_keys | ||||||
| wget https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.tar.xz -O debian-12-generic-amd64.tar.xz | wget https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.tar.xz -O debian-12-generic-amd64.tar.xz | ||||||
| wget https://cloud.debian.org/images/cloud/bookworm/latest/SHA512SUMS -O SHA512SUMS | wget https://cloud.debian.org/images/cloud/bookworm/latest/SHA512SUMS -O SHA512SUMS | ||||||
| sha512sum --ignore-missing -c SHA512SUMS | sha512sum --ignore-missing -c SHA512SUMS | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue