Skip to content

Instantly share code, notes, and snippets.

@vbnin
Created November 14, 2024 19:42
Show Gist options
  • Select an option

  • Save vbnin/51f5c7deb292d1f0a67adeb30059d216 to your computer and use it in GitHub Desktop.

Select an option

Save vbnin/51f5c7deb292d1f0a67adeb30059d216 to your computer and use it in GitHub Desktop.
Configure Jamf Pro using Terraform - Basic Example
# This terraform config file is a basic example of how to create a category, department and building in Jamf Pro
terraform {
required_providers {
jamfpro = {
source = "deploymenttheory/jamfpro"
version = "0.4.3"
}
}
}
provider "jamfpro" {
jamfpro_instance_fqdn = "https://YOUR_INSTANCE.jamfcloud.com"
auth_method = "oauth2"
client_id = ""
client_secret = ""
jamfpro_load_balancer_lock = true
}
resource "jamfpro_department" "example_department_1" {
name = "Marketing"
}
resource "jamfpro_category" "example_category_1" {
name = "Utilities"
}
resource "jamfpro_building" "example_building_1" {
name = "Paris Office"
}
@vbnin
Copy link
Author

vbnin commented Nov 14, 2024

Good YouTube tutorial to get started with Terraform: https://youtu.be/7xngnjfIlK4?feature=shared

Jamf Pro provider for Terraform: https://github.com/deploymenttheory/terraform-provider-jamfpro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment