32 lines
797 B
PHP
32 lines
797 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use App\Models\InfraManagement;
|
|
use App\Http\Facade\SignRSA;
|
|
|
|
class InfraManagementSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
InfraManagement::updateOrCreate(
|
|
['host' => '10.10.10.173'],
|
|
[
|
|
'name' => 'Jumphost 173',
|
|
'username' => 'administrator',
|
|
'password' => SignRSA::EncryptFunc('Thegioiso@123**$$8899TgTk2'),
|
|
'type' => 'jumphost',
|
|
'status' => true,
|
|
'meta_data' => [
|
|
'port' => 22
|
|
],
|
|
'description' => 'Main Jumphost for vCenter PowerCLI operations'
|
|
]
|
|
);
|
|
}
|
|
}
|