Hardware Data

Pushing hardware data

  • Exec into the tink CLI container using docker exec -ti deploy_tink-cli_1 /bin/sh:
  • Create a file containing the hardware data (say data.json)
    • ensure that you replace <worker_mac_addr> with the actual worker MAC.
    • the worker MAC can be found in the Terraform output (and also in the generated terraform.tfstate file).
    • if you did not use Terraform to provision the servers, you can call the Packet API devices endpoint, and the worker MAC will be the MAC under eth0.
          "type": "NetworkPort",
          "name": "eth0",
          "data": {
              "bonded": false,
              "mac": "00:00:00:00:00:00" // worker mac
  • Here is the minimal hardware data that can get you started with the Hello World! example.
  "id": "0eba0bf8-3772-4b4a-ab9f-6ebe93b90a94",
  "metadata": {
    "facility": {
      "facility_code": "ewr1",
      "plan_slug": "c2.medium.x86",
      "plan_version_slug": ""
    "instance": {},
    "state": ""
  "network": {
    "interfaces": [
        "dhcp": {
          "arch": "x86_64",
          "ip": {
            "address": "",
            "gateway": "",
            "netmask": ""
          "mac": "00:00:00:00:00:00",
          "uefi": false
        "netboot": {
          "allow_pxe": true,
          "allow_workflow": true
  • You can read more about the hardware data under here.

You will also have to adjust the address and gateway under ip_addresses accordingly if you chose a non-default subnet and host IP address.

  • Push the hardware data into database with either of the following:
$ tink hardware push --file data.json
$ cat data.json | tink hardware push
  • If the data is valid, you must see a success message.

You can now follow the steps defined in the Hello World! example to test if the setup is ready.