instance($run); $node = (string) $run->context('node'); $vmid = (int) $run->context('vmid'); $pve = $this->pve->forHost($instance->host); // Idempotent: setting the same values / resizing to a size not smaller is a no-op. $pve->setCloudInit($node, $vmid, [ 'ipconfig0' => 'ip=dhcp', 'ciuser' => 'clupilot', 'nameserver' => '1.1.1.1', ]); // Absolute target (not '+…') so a retry can't grow the disk twice. $pve->resizeDisk($node, $vmid, 'scsi0', $instance->disk_gb.'G'); return StepResult::advance(); } }