Skip to content
Snippets Groups Projects
Commit b64bed3b authored by Florian Sesser's avatar Florian Sesser
Browse files

Merge branch 'local-dev-env-2' into local-dev-env-3

Update branch by merging @jcalderone's feedback on local-dev-env-2.
parents f47e3f63 7493fd51
Branches
No related tags found
3 merge requests!97Merge staging into production,!96Merge develop into staging,!83Get the local dev env running: Add keys
......@@ -78,7 +78,24 @@ Build and start the VMs::
VAGRANT_DEFAULT_PROVIDER=virtualbox vagrant up
Then::
Then, once::
vagrant ssh-config > ./vagrant-ssh-config
Add the IPs from ``grid.nix`` to the vagrant-ssh-config Host match blocks so the config reads like::
Host payments1 192.168.67.21
HostName 192.168.67.21
User vagrant
[...]
Then, make morph use this ssh config either - with newer morph - point it to it::
export SSH_CONFIG_FILE=./vagrant-ssh-config
Or, with older morph, adding the config to your user's ``~/.ssh/config`` file.
Then, build and deploy our software to the Vagrant VMs::
morph build grid.nix
morph push grid.nix
......
......@@ -33,6 +33,7 @@ Vagrant.configure("2") do |config|
end
# To make the VMs assign the static IPs to the network interfaces we need a rebuild:
config.vm.provision "shell", inline: "echo '{nix.trustedUsers = [ \"@wheel\" \"root\" \"vagrant\" ];}' > /etc/nixos/custom-configuration.nix"
config.vm.provision "shell", inline: "nixos-rebuild switch"
config.trigger.after :up do |trigger|
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment