» packet_operating_system

Use this data source to get Packet Operating System image.

» Example Usage

data "packet_operating_system" "example" {
  name             = "Container Linux"
  distro           = "coreos"
  version          = "alpha"
  provisionable_on = "c1.small.x86"
}

resource "packet_device" "server" {
  hostname         = "tf.coreos2"
  plan             = "c1.small.x86"
  facilities       = ["ewr1"]
  operating_system = "${data.packet_operating_system.example.id}"
  billing_cycle    = "hourly"
  project_id       = "${local.project_id}"
}

» Argument Reference

  • distro - (Optional) Name of the OS distribution.
  • name - (Optional) Name or part of the name of the distribution. Case insensitive.
  • provisionable_on - (Optional) Plan name.
  • version - (Optional) Version of the distribution

» Attributes Reference

  • id - Operating system slug
  • slug - Operating system slug (same as id)