generated from deploymenttheory/Template
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Remove commented out code in Jamf Pro Terraform configuration
- Loading branch information
Showing
7 changed files
with
109 additions
and
109 deletions.
There are no files selected for viewing
This file contains 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 file contains 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 file contains 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 file contains 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 file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,65 @@ | ||
resource "jamfpro_script" "jamfpro_script_001" { | ||
name = "tf-ghatest-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-ghatest-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 | ||
# } | ||
|
||
data "jamfpro_script" "jamfpro_script_001_data" { | ||
id = jamfpro_script.jamfpro_script_001.id | ||
} | ||
# data "jamfpro_script" "jamfpro_script_001_data" { | ||
# id = jamfpro_script.jamfpro_script_001.id | ||
# } | ||
|
||
output "jamfpro_script_001_data_id" { | ||
value = data.jamfpro_script.jamfpro_script_001_data.id | ||
} | ||
# output "jamfpro_script_001_data_id" { | ||
# value = data.jamfpro_script.jamfpro_script_001_data.id | ||
# } | ||
|
||
output "jamfpro_script_001_data_name" { | ||
value = data.jamfpro_script.jamfpro_script_001_data.name | ||
} | ||
# output "jamfpro_script_001_data_name" { | ||
# value = data.jamfpro_script.jamfpro_script_001_data.name | ||
# } | ||
|
||
resource "jamfpro_script" "jamfpro_script_002" { | ||
name = "tf-ghatest-encrypt-apfs-volume-v5.0.1" | ||
script_contents = file("${path.module}/support_files/scripts/Encrypt APFS Volume.zsh") | ||
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" | ||
parameter4 = "/" // targetVolume | ||
} | ||
# resource "jamfpro_script" "jamfpro_script_002" { | ||
# name = "tf-ghatest-encrypt-apfs-volume-v5.0.1" | ||
# script_contents = file("${path.module}/support_files/scripts/Encrypt APFS Volume.zsh") | ||
# 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" | ||
# parameter4 = "/" // targetVolume | ||
# } | ||
|
||
data "jamfpro_script" "jamfpro_script_002_data" { | ||
id = jamfpro_script.jamfpro_script_002.id | ||
} | ||
# data "jamfpro_script" "jamfpro_script_002_data" { | ||
# id = jamfpro_script.jamfpro_script_002.id | ||
# } | ||
|
||
output "jamfpro_script_002_data_id" { | ||
value = data.jamfpro_script.jamfpro_script_002_data.id | ||
} | ||
# output "jamfpro_script_002_data_id" { | ||
# value = data.jamfpro_script.jamfpro_script_002_data.id | ||
# } | ||
|
||
output "jamfpro_script_002_data_name" { | ||
value = data.jamfpro_script.jamfpro_script_002_data.name | ||
} | ||
# output "jamfpro_script_002_data_name" { | ||
# value = data.jamfpro_script.jamfpro_script_002_data.name | ||
# } | ||
|
||
resource "jamfpro_script" "jamfpro_script_003" { | ||
name = "tf-ghatest-reset-safari-v2.1.4" | ||
script_contents = file("${path.module}/support_files/scripts/Reset Safari.sh") | ||
os_requirements = "13" | ||
priority = "BEFORE" | ||
info = "Deleting Safari preference files to reset to system default." | ||
notes = "Jamf Pro script parameters: none" | ||
# resource "jamfpro_script" "jamfpro_script_003" { | ||
# name = "tf-ghatest-reset-safari-v2.1.4" | ||
# script_contents = file("${path.module}/support_files/scripts/Reset Safari.sh") | ||
# os_requirements = "13" | ||
# priority = "BEFORE" | ||
# info = "Deleting Safari preference files to reset to system default." | ||
# notes = "Jamf Pro script parameters: none" | ||
|
||
} | ||
# } | ||
|
||
data "jamfpro_script" "jamfpro_script_003_data" { | ||
id = jamfpro_script.jamfpro_script_003.id | ||
} | ||
# data "jamfpro_script" "jamfpro_script_003_data" { | ||
# id = jamfpro_script.jamfpro_script_003.id | ||
# } | ||
|
||
output "jamfpro_script_003_data_id" { | ||
value = data.jamfpro_script.jamfpro_script_003_data.id | ||
} | ||
# output "jamfpro_script_003_data_id" { | ||
# value = data.jamfpro_script.jamfpro_script_003_data.id | ||
# } | ||
|
||
output "jamfpro_script_003_data_name" { | ||
value = data.jamfpro_script.jamfpro_script_003_data.name | ||
} | ||
# output "jamfpro_script_003_data_name" { | ||
# value = data.jamfpro_script.jamfpro_script_003_data.name | ||
# } |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
resource "jamfpro_smart_computer_group" "smart_computer_group_001" { | ||
name = "tf-ghatest-computergroup-operating-system-like-macos-14" | ||
# resource "jamfpro_smart_computer_group" "smart_computer_group_001" { | ||
# name = "tf-ghatest-computergroup-operating-system-like-macos-14" | ||
|
||
// optional | ||
site_id = -1 | ||
# // optional | ||
# site_id = -1 | ||
|
||
# Add computers to the group | ||
criteria { | ||
name = "Operating System Version" | ||
priority = 0 | ||
and_or = "and" | ||
search_type = "like" | ||
value = "14" | ||
opening_paren = true | ||
closing_paren = false | ||
} | ||
criteria { | ||
name = "Operating System Version" | ||
priority = 1 | ||
and_or = "and" | ||
search_type = "like" | ||
value = "14" | ||
opening_paren = false | ||
closing_paren = true | ||
} | ||
# # Add computers to the group | ||
# criteria { | ||
# name = "Operating System Version" | ||
# priority = 0 | ||
# and_or = "and" | ||
# search_type = "like" | ||
# value = "14" | ||
# opening_paren = true | ||
# closing_paren = false | ||
# } | ||
# criteria { | ||
# name = "Operating System Version" | ||
# priority = 1 | ||
# and_or = "and" | ||
# search_type = "like" | ||
# value = "14" | ||
# opening_paren = false | ||
# closing_paren = true | ||
# } | ||
|
||
} | ||
# } |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
resource "jamfpro_static_computer_group" "static_computer_group_002" { | ||
name = "tf-ghatest-staticcomputergroup" | ||
# resource "jamfpro_static_computer_group" "static_computer_group_002" { | ||
# name = "tf-ghatest-staticcomputergroup" | ||
|
||
// optional | ||
//site_id = -1 | ||
# // optional | ||
# //site_id = -1 | ||
|
||
assigned_computer_ids = [16, 17, 20] | ||
# assigned_computer_ids = [16, 17, 20] | ||
|
||
} | ||
# } |