chore(seed): demo Proxmox hosts for the operator console (local/testing)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
feat/portal-design
nexxo 2026-07-25 10:15:12 +02:00
parent 8d12a40a42
commit 36a564d5c8
1 changed files with 22 additions and 0 deletions

View File

@ -2,6 +2,7 @@
namespace Database\Seeders;
use App\Models\Host;
use App\Models\User;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;
@ -36,5 +37,26 @@ class DatabaseSeeder extends Seeder
'is_admin' => false,
],
);
// Demo fleet so the operator console hosts view has content locally.
$fleet = [
['name' => 'pve-fsn-1', 'datacenter' => 'fsn', 'public_ip' => '203.0.113.11', 'wg_ip' => '10.66.0.2'],
['name' => 'pve-hel-1', 'datacenter' => 'hel', 'public_ip' => '203.0.113.21', 'wg_ip' => '10.66.0.3'],
];
foreach ($fleet as $host) {
Host::updateOrCreate(['name' => $host['name']], [
'datacenter' => $host['datacenter'],
'public_ip' => $host['public_ip'],
'wg_ip' => $host['wg_ip'],
'status' => 'active',
'total_gb' => 2000,
'total_ram_mb' => 131072,
'cpu_cores' => 32,
'cpu_weight' => 32,
'reserve_pct' => 15,
'pve_version' => 'pve-manager/8.2.2',
'last_seen_at' => now(),
]);
}
}
}