librenms-librenms/database/seeders/DatabaseSeeder.php
Tony Murray d11a6c6ebb Feature config seeder (#13259)
* Feature config seeder
Place yaml key value files in database/seeders/config to pre-populate the config database
This feature is primarily for docker images and other automation

example snmp.yaml
```yaml
snmp.community:
    - public
    - private
snmp.max_repeaters 30
```

* fix style

* include /data/config as used in docker

* respect --force option

* Confirm if re-import
Defaults to yes for --no-interaction
Don't confirm if there is nothing to do

* default to false

* typehints
2021-09-27 12:17:15 -05:00

22 lines
432 B
PHP

<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
$this->call(DefaultAlertTemplateSeeder::class);
$this->call(DefaultWidgetSeeder::class);
$this->call(DefaultLegacySchemaSeeder::class);
$this->call(ConfigSeeder::class);
}
}