Explorar o código

Harvester changes for v0.3.0

Antony Messerli %!s(int64=3) %!d(string=hai) anos
pai
achega
89b5c4e01e

+ 1 - 1
roles/netbootxyz/defaults/main.yml

@@ -270,7 +270,7 @@ releases:
   harvester:
     enabled: true
     menu: linux
-    mirror: https://releases.rancher.com/harvester
+    mirror: http://releases.rancher.com/harvester
     name: Harvester
     versions:
     - code_name: v0.3.0

+ 6 - 6
roles/netbootxyz/templates/menu/harvester.ipxe.j2

@@ -2,7 +2,7 @@
 
 # Harvester
 # https://harvesterhci.io/
-# https://docs.harvesterhci.io/v0.2/install/pxe-boot-install/
+# https://docs.harvesterhci.io/v0.3/install/pxe-boot-install/
 
 goto ${menu} ||
 
@@ -52,14 +52,14 @@ goto harvester
 
 :harvester_boot
 isset ${harvester_base_url} || set harvester_base_url ${harvester_mirror}/${harvester_version}
-set install_params k3os.mode=install harvester.install.automatic=true harvester.install.config_url=${harvester_config_url}
-set boot_params console=ttyS0 console=tty1
+set install_params harvester.install.automatic=true harvester.install.config_url=${harvester_config_url}
+set boot_params ip=dhcp console=ttyS0 console=tty1 rd.cos.disable root=live:${harvester_base_url}/harvester-${harvester_version}-rootfs-${os_arch}.squashfs
 imgfree
-kernel ${harvester_base_url}/harvester-vmlinuz-${os_arch} ${install_params} ${boot_params} {{ kernel_params }}
-initrd ${harvester_base_url}/harvester-initrd-${os_arch}
+kernel ${harvester_base_url}/harvester-${harvester_version}-vmlinuz-${os_arch} ${install_params} ${boot_params} {{ kernel_params }}
+initrd ${harvester_base_url}/harvester-${harvester_version}-initrd-${os_arch}
 echo
 echo MD5sums:
-md5sum harvester-vmlinuz-${os_arch} harvester-initrd-${os_arch}
+md5sum harvester-${harvester_version}-vmlinuz-${os_arch} harvester-${harvester_version}-initrd-${os_arch}
 boot
 
 :harvester_exit