Packet

Automated setup using Terraform

Using Terraform (with the Packet provider), create two servers tf-provisioner and tf-worker attached to the same VLAN.

  • Clone the tink repository:
git clone https://github.com/tinkerbell/tink.git
cd tink/deploy/terraform
  • Update the <packet_api_token> and <project_id> fields in input.tf with your Packet API token and desired project ID
    • Make sure the API token is a user API token (created/accessed under API keys in your personal settings)
    • You may also update the hostnames in main.tf if you prefer names other than tf-provisioner and tf-worker
  • You may also update the hostnames in main.tf if you prefer names other than tf-provisioner and tf-worker
  • Run the following commands:
terraform init
terraform apply

As an output, it returns the IP address of the provisioner and MAC address of the worker machine.

Manual Setup

If you do not wish to use Terraform, you can provision the servers manually with the following configurations.

Provisioner

  • Plan: c3.small.x86 (or any plan that supports Layer 2)
  • OS: Ubuntu 18.04 LTS
  • After device is provisioned:
    • Convert network type to Mixed/Hybrid
    • Attach VLAN to interface eth1 (under Layer 2)

Worker

  • Facility: <same_as_provisioner>
  • Plan: c3.small.x86 (or any plan that supports Layer 2)
  • OS: Custom iPXE
  • After device is provisioned:
    • Convert network type to Layer 2 (individual)
    • Attach VLAN to interface eth0
    • Same VLAN as provisioner