-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Working shoelaces for Proxmox PXE boot.
- Working configuration for image server that extracts all Ubuntu ISOs automatically, extracts the initrd and vmlinuz and symlinks the latest iso. - Working shoelaces dns resolution of IP addresses. - Working cloud config for Ubuntu. - Adds IP block for ubuntu 22.04 machines.
- Loading branch information
Showing
15 changed files
with
136 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
ansible/roles/shoelaces/files/cloud-config/cloud-config-ubuntu-packages-pve.slc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{{define "cloud-config-ubuntu-packages-pve"}} | ||
|
||
packages: | ||
- qemu-guest-agent | ||
|
||
{{end}} |
41 changes: 41 additions & 0 deletions
41
ansible/roles/shoelaces/files/cloud-config/cloud-config-ubuntu-pve.slc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{{define "cloud-config-ubuntu-pve" -}} | ||
#cloud-config | ||
autoinstall: | ||
refresh-installer: | ||
update: false | ||
apt: | ||
geoip: false | ||
preserve_sources_list: false | ||
primary: | ||
- arches: [amd64, i386] | ||
uri: http://apt.tools.rye.ninja/ubuntu | ||
- arches: [default] | ||
uri: http://apt.tools.rye.ninja/ubuntu | ||
identity: | ||
hostname: {{.hostname}} | ||
password: {{.password_hash}} | ||
realname: Automation User | ||
username: automation-user | ||
keyboard: | ||
layout: us | ||
toggle: alt_caps_toggle | ||
variant: '' | ||
locale: en_US.utf8 | ||
|
||
late-commands: | ||
- echo 'automation-user ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/automation-user | ||
|
||
{{template "cloud-config-ubuntu-packages-pve"}} | ||
{{template "cloud-config-ubuntu-ssh"}} | ||
|
||
storage: | ||
config: | ||
{{template "cloud-config-ubuntu-storage-pve"}} | ||
{{template "cloud-config-ubuntu-storage"}} | ||
swap: | ||
swap: 0 | ||
|
||
version: 1 | ||
|
||
{{end}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
esten@jumpbox | ||
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDLOOcdudgGgvUIsFxIDY6/uq9daQ7kmvSmRydv8KiqOXSUb5NH3YnnYpqcl7Le8T9U5++I71S5kRSxgsq+CY8ZmdrG522Rxy1/ixl0REKSKexZ7h/iue6ve0WxE9tS7Cj9ubug4/d1l6cFEdIp1KyzPdMRJtW9LB650t/mpe17LBic39XOcHfWdpYqCmW4Wrg9D1nO/mO+Gx1LLwfii770aZ6lHIxsaVj1FwmqKdlQswco10KPfB2WvzBxSaUhV4+xUV2uJ9aXshQPUx49flqiPgwQn7jiQxkOdkGb0X63WJjKCImGn9uJ5ms+3MVoLPeRYucKZvDxqJsYieV1Zy8uDODoqrJHPaXnixVVMZFNtKpvHDYgEoURqE2i+T/zclOdmLcSe5oYtD90/MGcKTuScZaqv5UOYfGK/y9Rqhleofznx6QqHPFVmN8HDgJje8EVwWfob3SbzfP3fYa60OJF0nfjxCBGCHZa8ZFZ47/qmpJsgWHgj6tlaYJw532lG4gCToy22PvTLmn7RQ8eB4IDmJWepezElkeH4KuQoM7o1UEPEdMkbeH1lzALj2sgGd3AnYhJxODLhlRULYdsA/dFp+bApB1YXf64fPg2ksPJdSQ7z/DIAHa1W0u6YhqVHRtaPq5s1zHzFKyDv3SClXGskExlFWz73P8l5nJkEqZfVw== | ||
[email protected] | ||
- ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBABRrM38w/r7E5eHrD5eeQ0tU5sNlpseYO3s0kKKf0tbYIOsGW52ofUBzzx2/3PoAANOX/rZIwk6DmmiQxPizKeF6QCZuHrzknDHNHtg2JNWlsh24zNI9OjX8e+bB1oPE8y/PQPXPA8hrf7RZhU0wb3Ld4I6tOpcdiimlOI4sYmPgITmKA== esten@MacBook-Pro | ||
install-server: true | ||
|
||
{{end}} |
10 changes: 10 additions & 0 deletions
10
ansible/roles/shoelaces/files/cloud-config/cloud-config-ubuntu-storage-bm.slc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{{define "cloud-config-ubuntu-storage-bm"}} | ||
- ptable: msdos | ||
path: /dev/sda | ||
wipe: superblock | ||
preserve: false | ||
name: 'ubuntu' | ||
grub_device: true | ||
type: disk | ||
id: disk-ubuntu | ||
{{end}} |
10 changes: 10 additions & 0 deletions
10
ansible/roles/shoelaces/files/cloud-config/cloud-config-ubuntu-storage-pve.slc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{{define "cloud-config-ubuntu-storage-pve"}} | ||
- ptable: msdos | ||
path: /dev/vda | ||
wipe: superblock | ||
preserve: false | ||
name: 'ubuntu' | ||
grub_device: true | ||
type: disk | ||
id: disk-ubuntu | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{{define "ubuntu-pve.ipxe" -}} | ||
#!ipxe | ||
|
||
echo This automatically overwrites data! | ||
echo Ubuntu {{.release}} minimal | ||
|
||
set mirror http://{{.baseURL}}/tftp/live/ubuntu/live-server-amd64/{{.release}} | ||
set ds_url http://{{.baseURL}}/configs/cloud-config-ubuntu-pve?hostname={{.hostname}}&password_hash={{.password_hash}} | ||
|
||
chain http://{{.baseURL}}/configs/linux.cfg?hostname={{.hostname}} | ||
|
||
imgfree | ||
|
||
kernel ${mirror}/vmlinuz initrd=initrd root=/dev/ram0 ramdisk_size=1500000 ip=dhcp url=${mirror}/ubuntu-live-server-amd64.iso autoinstall ds=nocloud-net;s=${ds_url} cloud-config-url=/dev/null ${linuxargs} | ||
initrd ${mirror}/initrd | ||
boot | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
base-url={{ shoelaces_domain }} | ||
bind-addr={{ shoelaces_bind_addr }} | ||
data-dir=/etc/shoelaces/data | ||
dns-addr={{ dns_server }} | ||
template-extension={{ shoelaces_template_extension }} | ||
mappings-file=mappings.yaml | ||
debug={{ shoelaces_debug | bool | lower }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters