Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Commit

Permalink
Vagrant box is now configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbaljet committed Aug 3, 2023
1 parent a8e26b2 commit 2d1e26e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Infrastructure/Vagrant.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,11 @@ public function createServer(string $name, string $regionId, string $typeId, str
$id = (string) $this->generateServerId();
$ipAddress = $this->getPublicIpv4OfServer($id);

$vagrantBox = config('eddy.vagrant_box');

$vagrantFile = "
Vagrant.configure(\"2\") do |config|
config.vm.box = \"ubuntu/jammy64\"
config.vm.box = \"{$vagrantBox}\"
config.vm.provider \"virtualbox\" do |vb|
vb.name = '{$name}-{$id}'
Expand Down
5 changes: 5 additions & 0 deletions config/eddy.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,9 @@
* A little helper to fake the validation of provider tokens (used in the Dusk tests).
*/
'fake_credentials_validation' => env('FAKE_CREDENTIALS_VALIDATION', false),

/**
* The default Vagrant box that is used when provisioning a new server.
*/
'vagrant_box' => 'ubuntu/jammy64',
];

0 comments on commit 2d1e26e

Please sign in to comment.