terraform-provider-jamfpro

command module
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

README

Terraform Provider for Jamf Pro

This repository contains the Terraform provider for managing resources in Jamf Pro. It is built on the Terraform Plugin SDK and intended for creating and managing Jamf Pro entities like departments, sites, policies, etc.

The provider contains:

  • Resources and data sources for Jamf Pro entities (internal/provider/),
  • Examples (examples/) and generated documentation (docs/),
  • Miscellaneous meta files.

These files contain the actual code and configurations for the Terraform provider. Tutorials for creating Terraform providers can be found on the HashiCorp Developer platform.

Please see the GitHub template repository documentation for guidance on creating a new repository.

Once the provider is finalized, you may want to publish it on the Terraform Registry so that others can use it.

Requirements

Building The Provider

  1. Clone the repository
  2. Enter the repository directory
  3. Build the provider using the Go install command:
go install

Adding Dependencies

This provider uses Go modules.

To add a new dependency github.com/author/dependency to your Terraform provider:

go get github.com/author/dependency
go mod tidy

Then commit the changes to go.mod and go.sum.

Using the provider

To use this provider, you need to configure it with your Jamf Pro instance's URL and authentication credentials. The provider allows you to manage various resources such as departments, sites, and policies within Jamf Pro.

Developing the Provider

If you wish to work on the provider, you'll first need Go installed on your machine (see Requirements above).

To compile the provider, run go install. This will build the provider and put the provider binary in the $GOPATH/bin directory.

To generate or update documentation, run go generate.

To run the full suite of Acceptance tests, execute make testacc.

Note: Acceptance tests create real resources, and often cost money to run.

make testacc

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
client
config_client.go
config_client.go
helpers
provider_helpers.go
provider_helpers.go
importer command
provider
providers.go
providers.go
resources/apiintegrations
apiintegrations_data_source.go
apiintegrations_data_source.go
resources/apiroles
apiroles_data_source.go
apiroles_data_source.go
resources/computerextensionattributes
computerextensionattributes_data_source.go
computerextensionattributes_data_source.go
resources/computergroups
computergroup_data_source.go
computergroup_data_source.go
resources/departments
department_data_source.go
department_data_source.go
resources/sites
sites_date_source.go
sites_date_source.go
Package version contains a variable used to construct the User-Agent for API requests.
Package version contains a variable used to construct the User-Agent for API requests.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL