Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔄 Terraform changes from feat-computer_extension_attributes #488

Merged
merged 2 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 27 additions & 27 deletions workload/terraform/jamfpro/buildings.tf
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@

resource "jamfpro_building" "jamfpro_building_001" {
name = "tf-demo-Apple-Park"
street_address1 = "The McIntosh Tree"
street_address2 = "One Apple Park Way"
city = "Cupertino"
state_province = "California"
zip_postal_code = "95014"
country = "The United States of America"
}
# resource "jamfpro_building" "jamfpro_building_001" {
# name = "tf-demo-Apple-Park"
# street_address1 = "The McIntosh Tree"
# street_address2 = "One Apple Park Way"
# city = "Cupertino"
# state_province = "California"
# zip_postal_code = "95014"
# country = "The United States of America"
# }

resource "jamfpro_building" "jamfpro_building_002" {
name = "tf-demo-jamf-headquarters"
street_address1 = "100 Washington Ave S"
street_address2 = "Suite 1100"
city = "Minneapolis"
state_province = "Minnesota"
zip_postal_code = "55401"
country = "The United States of America"
}
# resource "jamfpro_building" "jamfpro_building_002" {
# name = "tf-demo-jamf-headquarters"
# street_address1 = "100 Washington Ave S"
# street_address2 = "Suite 1100"
# city = "Minneapolis"
# state_province = "Minnesota"
# zip_postal_code = "55401"
# country = "The United States of America"
# }

resource "jamfpro_building" "jamfpro_building_003" {
name = "tf-demo-Apple-Battersea"
street_address1 = "Ground Floor, Turbine Hall A, Circus Rd W, Nine Elms"
street_address2 = "Suite 1100"
city = "London"
state_province = "London"
zip_postal_code = "SW11 8AL"
country = "United Kingdom"
}
# resource "jamfpro_building" "jamfpro_building_003" {
# name = "tf-demo-Apple-Battersea"
# street_address1 = "Ground Floor, Turbine Hall A, Circus Rd W, Nine Elms"
# street_address2 = "Suite 1100"
# city = "London"
# state_province = "London"
# zip_postal_code = "SW11 8AL"
# country = "United Kingdom"
# }
30 changes: 15 additions & 15 deletions workload/terraform/jamfpro/dock_items.tf
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@

resource "jamfpro_dock_item" "jamfpro_dock_item_001" {
name = "tf-demo-dockItem-app-iTunes"
type = "App"
path = "file://localhost/Applications/iTunes.app/"
}
# resource "jamfpro_dock_item" "jamfpro_dock_item_001" {
# name = "tf-demo-dockItem-app-iTunes"
# type = "App"
# path = "file://localhost/Applications/iTunes.app/"
# }

resource "jamfpro_dock_item" "jamfpro_dock_item_002" {
name = "tf-demo-dockItem-file-hosts"
type = "File" // App / File / Folder
path = "/etc/hosts"
}
# resource "jamfpro_dock_item" "jamfpro_dock_item_002" {
# name = "tf-demo-dockItem-file-hosts"
# type = "File" // App / File / Folder
# path = "/etc/hosts"
# }

resource "jamfpro_dock_item" "jamfpro_dock_item_003" {
name = "tf-demo-dockItem-folder-downloadsFolder"
type = "Folder" // App / File / Folder
path = "~/Downloads"
}
# resource "jamfpro_dock_item" "jamfpro_dock_item_003" {
# name = "tf-demo-dockItem-folder-downloadsFolder"
# type = "Folder" // App / File / Folder
# path = "~/Downloads"
# }
26 changes: 13 additions & 13 deletions workload/terraform/jamfpro/macos_configuration_profiles_plist.tf
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@

resource "jamfpro_macos_configuration_profile_plist" "jamfpro_macos_configuration_profile_001" {
name = "tf-demo-mcp-accessibility_hearing_base-prod-v0.0.1"
distribution_method = "Install Automatically"
payloads = file("${path.module}/support_files/configuration_profiles/dt-mcp-accessibility_hearing_base-prod-v0.0.1.mobileconfig")
category_id = -1
user_removable = false
level = "System"
redeploy_on_update = "Newly Assigned"
scope {
all_computers = true
all_jss_users = true
}
}
# resource "jamfpro_macos_configuration_profile_plist" "jamfpro_macos_configuration_profile_001" {
# name = "tf-demo-mcp-accessibility_hearing_base-prod-v0.0.1"
# distribution_method = "Install Automatically"
# payloads = file("${path.module}/support_files/configuration_profiles/dt-mcp-accessibility_hearing_base-prod-v0.0.1.mobileconfig")
# category_id = -1
# user_removable = false
# level = "System"
# redeploy_on_update = "Newly Assigned"
# scope {
# all_computers = true
# all_jss_users = true
# }
# }

# resource "jamfpro_macos_configuration_profile_plist" "jamfpro_macos_configuration_profile_002" {
# name = "tf-demo-mcp-accessibility_seeing_base-prod-v0.0.1"
Expand Down
2 changes: 1 addition & 1 deletion workload/terraform/jamfpro/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
jamfpro = {
source = "deploymenttheory/jamfpro"
version = "~> 0.2.0"
version = "~> 0.3.1"
}
}
}
Expand Down
18 changes: 9 additions & 9 deletions workload/terraform/jamfpro/scripts.tf
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# resource "jamfpro_script" "jamfpro_script_001" {
# name = "tf-demo-correct-application-permissions-v1.0"
# script_contents = file("${path.module}/support_files/scripts/Correct Application Permissions.sh")
# os_requirements = "13"
# priority = "BEFORE"
# info = "Adds target user or group to specified group membership, or removes said membership."
# notes = "Jamf Pro script parameters: 4 -> 7"
# parameter4 = "Google Chrome" // targetApplication
# }
resource "jamfpro_script" "jamfpro_script_001" {
name = "tf-demo-correct-application-permissions-v1.0"
script_contents = file("${path.module}/support_files/scripts/Correct Application Permissions.sh")
os_requirements = "13"
priority = "BEFORE"
info = "Adds target user or group to specified group membership, or removes said membership."
notes = "Jamf Pro script parameters: 4 -> 7"
parameter4 = "Google Chrome" // targetApplication
}

# resource "jamfpro_script" "jamfpro_script_002" {
# name = "tf-demo-encrypt-apfs-volume-v5.0.1"
Expand Down