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.
Merge pull request #99 from deploymenttheory/release
Update Jamf Pro configuration profiles, packages, scripts, and sites
- Loading branch information
Showing
4 changed files
with
88 additions
and
86 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
|
||
# resource "jamfpro_macos_configuration_profile" "jamfpro_macos_configuration_profile_001" { | ||
# name = "tf-ghatest-macosconfigprofile-accessibility-options" | ||
# distribution_method = "Install Automatically" | ||
# payload = file("${path.module}/support_files/configuration_profiles/accessibility-chara-nosub-test.mobileconfig") | ||
# category { | ||
# id = -1 | ||
# } | ||
# scope { | ||
# all_computers = false | ||
# computer_ids = sort([17, 18]) | ||
# computer_group_ids = sort([53]) | ||
# jss_user_ids = [4] | ||
# jss_user_group_ids = [4] | ||
resource "jamfpro_macos_configuration_profile" "jamfpro_macos_configuration_profile_001" { | ||
name = "tf-ghatest-macosconfigprofile-accessibility-options" | ||
distribution_method = "Install Automatically" | ||
payload = file("${path.module}/support_files/configuration_profiles/accessibility-chara-nosub-test.mobileconfig") | ||
category { | ||
id = -1 | ||
} | ||
scope { | ||
all_computers = false | ||
computer_ids = sort([17, 18]) | ||
computer_group_ids = sort([53]) | ||
jss_user_ids = [4] | ||
jss_user_group_ids = [4] | ||
|
||
# exclusions { | ||
# department_ids = [27653] | ||
# } | ||
# } | ||
# } | ||
exclusions { | ||
department_ids = [27653] | ||
} | ||
} | ||
} |
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,30 +1,32 @@ | ||
|
||
# // Define a Jamf Pro Package Resource | ||
# resource "jamfpro_package" "jamfpro_package_001" { | ||
# name = "tf-ghatest-package-suspiciouspackage" | ||
# package_file_path = "support_files/packages/SuspiciousPackage.dmg" | ||
# category = "Unknown" | ||
# info = "tf package deployment for demonstration" | ||
# notes = "This package is used for Terraform provider documentation example." | ||
# priority = 10 | ||
# reboot_required = false | ||
# fill_user_template = true | ||
# fill_existing_users = true | ||
# boot_volume_required = false | ||
# allow_uninstalled = false | ||
# os_requirements = "macOS 10.15.1, macOS 10.15.7" | ||
# install_if_reported_available = false | ||
# send_notification = true | ||
# } | ||
|
||
# data "jamfpro_package" "jamfpro_package_001_data" { | ||
# id = jamfpro_package.jamfpro_package_001.id | ||
# } | ||
// Define a Jamf Pro Package Resource | ||
|
||
# output "jamfpro_package_001_data_id" { | ||
# value = data.jamfpro_package.jamfpro_package_001_data.id | ||
# } | ||
resource "jamfpro_package" "jamfpro_package_001" { | ||
name = "tf-ghatest-package-suspiciouspackage" | ||
package_file_path = "support_files/packages/SuspiciousPackage.dmg" | ||
category = "Unknown" | ||
info = "tf package deployment for demonstration" | ||
notes = "This package is used for Terraform provider documentation example." | ||
priority = 10 | ||
reboot_required = false | ||
fill_user_template = true | ||
fill_existing_users = true | ||
boot_volume_required = false | ||
allow_uninstalled = false | ||
os_requirements = "macOS 10.15.1, macOS 10.15.7" | ||
install_if_reported_available = false | ||
send_notification = true | ||
} | ||
|
||
# output "jamfpro_package_001_data_name" { | ||
# value = data.jamfpro_package.jamfpro_package_001_data.name | ||
# } | ||
data "jamfpro_package" "jamfpro_package_001_data" { | ||
id = jamfpro_package.jamfpro_package_001.id | ||
} | ||
|
||
output "jamfpro_package_001_data_id" { | ||
value = data.jamfpro_package.jamfpro_package_001_data.id | ||
} | ||
|
||
output "jamfpro_package_001_data_name" { | ||
value = data.jamfpro_package.jamfpro_package_001_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
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,31 +1,31 @@ | ||
resource "jamfpro_site" "jamfpro_site_001" { | ||
name = "tf-ghatest-site-uk" | ||
} | ||
# resource "jamfpro_site" "jamfpro_site_001" { | ||
# name = "tf-ghatest-site-uk" | ||
# } | ||
|
||
resource "jamfpro_site" "site_002" { | ||
name = "tf-ghatest-site-india" | ||
} | ||
# resource "jamfpro_site" "site_002" { | ||
# name = "tf-ghatest-site-india" | ||
# } | ||
|
||
data "jamfpro_site" "jamfpro_site_001_data" { | ||
id = jamfpro_site.jamfpro_site_001.id | ||
} | ||
# data "jamfpro_site" "jamfpro_site_001_data" { | ||
# id = jamfpro_site.jamfpro_site_001.id | ||
# } | ||
|
||
output "jamfpro_site_001_id" { | ||
value = data.jamfpro_site.jamfpro_site_001_data.id | ||
} | ||
# output "jamfpro_site_001_id" { | ||
# value = data.jamfpro_site.jamfpro_site_001_data.id | ||
# } | ||
|
||
output "jamfpro_site_001_name" { | ||
value = data.jamfpro_site.jamfpro_site_001_data.name | ||
} | ||
# output "jamfpro_site_001_name" { | ||
# value = data.jamfpro_site.jamfpro_site_001_data.name | ||
# } | ||
|
||
data "jamfpro_site" "jamfpro_site_002" { | ||
id = jamfpro_site.site_002.id | ||
} | ||
# data "jamfpro_site" "jamfpro_site_002" { | ||
# id = jamfpro_site.site_002.id | ||
# } | ||
|
||
output "jamfpro_site_002_id" { | ||
value = data.jamfpro_site.jamfpro_site_002.id | ||
} | ||
# output "jamfpro_site_002_id" { | ||
# value = data.jamfpro_site.jamfpro_site_002.id | ||
# } | ||
|
||
output "jamfpro_site_002_name" { | ||
value = data.jamfpro_site.jamfpro_site_002.name | ||
} | ||
# output "jamfpro_site_002_name" { | ||
# value = data.jamfpro_site.jamfpro_site_002.name | ||
# } |