Skip to content

Commit

Permalink
chore: expose tink server via Vagrant port forward (#221)
Browse files Browse the repository at this point in the history
I am working at the e2e test for the vagrant setup. It is very useful to
be able to reach tink-server from outside the VM because that where the
logic that asserts the right execution lives.

It is also good for experimentation because I was able to build the tink
cli:

```
go build -o tink ./cmd/tink-cli/main.go
```

I was able to use the tink cli from my local environment. Way more
familiar that `docker exec` as a workflow imho:

```
$ TINKERBELL_GRPC_AUTHORITY=127.0.0.1:42113 TINKERBELL_CERT_URL=http://127.0.0.1:42114/cert ./tink hardware list
+----+-------------+------------+----------+
| ID | MAC ADDRESS | IP ADDRESS | HOSTNAME |
+----+-------------+------------+----------+
+----+-------------+------------+----------+
```
  • Loading branch information
gianarb authored Jul 17, 2020
1 parent 71f3ac3 commit 11a289b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deploy/vagrant/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ Vagrant.configure('2') do |config|
libvirt__forward_mode: 'none',
auto_config: false

provisioner.vm.network "forwarded_port", guest: 42113, host: 42113
provisioner.vm.network "forwarded_port", guest: 42114, host: 42114


provisioner.vm.provider :libvirt do |lv, override|
lv.memory = 2*1024
lv.cpus = 2
Expand Down

0 comments on commit 11a289b

Please sign in to comment.