Created
November 14, 2024 19:42
-
-
Save vbnin/51f5c7deb292d1f0a67adeb30059d216 to your computer and use it in GitHub Desktop.
Configure Jamf Pro using Terraform - Basic Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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" | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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