Skip to content

Latest commit

 

History

History
69 lines (52 loc) · 2 KB

index.md

File metadata and controls

69 lines (52 loc) · 2 KB
layout page_title description
Provider: Cobbler
The Cobbler provider provides resources to interact with the Cobbler API.

Cobbler Provider

The current version of the provider is only compatible with the Cobbler 3.3.x release series. Other versions are incompatible.

The Cobbler provider is used to interact with a locally installed Cobbler service. The provider needs to be configured with the proper credentials before it can be used.

Use the navigation to the left to read about the available resources.

Example Usage

terraform {
  required_providers {
    cobbler = {
      source = "cobbler/cobbler"
      version = "4.1.0"
    }
  }
}

variable "username" {
  type = string
}

variable "password" {
  type = string
}

variable "url" {
  type = string
}

variable "insecure" {
  type = bool
}

provider "cobbler" {
  username = var.username # optionally use COBBLER_USERNAME env var
  password = var.password # optionally use COBBLER_PASSWORD env var
  url  = var.url          # optionally use COBBLER_URL env var

  # You may need to allow insecure TLS communications unless you
  # have configured certificates
  insecure = var.insecure # optionally use COBBLER_INSECURE env var
}

Schema

Required

  • password (String) The password to the Cobbler service. This can also be specified with the COBBLER_PASSWORD shell environment variable.
  • url (String) The url to the Cobbler service. This can also be specified with the COBBLER_URL shell environment variable.
  • username (String) The username to the Cobbler service. This can also be specified with the COBBLER_USERNAME shell environment variable.

Optional

  • cacert_file (String) The path or contents of an SSL CA certificate. This can also be specified with the COBBLER_CACERT_FILEshell environment variable.
  • insecure (Boolean) The url to the Cobbler service. This can also be specified with the COBBLER_URL shell environment variable.