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 #140 from deploymenttheory/release
refactor: Update package sources in Jamf Pro Terraform configuration
- Loading branch information
Showing
2 changed files
with
119 additions
and
119 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,78 +1,78 @@ | ||
// Example of referencing a package directly within the repository | ||
resource "jamfpro_package" "jamfpro_package_001" { | ||
package_name = "tf-ghatest-package-suspiciouspackage" | ||
package_file_source = "support_files/packages/gha-test-SuspiciousPackage.dmg" | ||
category_id = "-1" // jamfpro_category.jamfpro_category_001.id | ||
info = "tf package deployment for demonstration" | ||
notes = "Uploaded by: terraform-provider-jamfpro plugin." | ||
priority = 10 | ||
reboot_required = true | ||
fill_user_template = false | ||
fill_existing_users = false | ||
os_requirements = "macOS 10.15.0" | ||
swu = false | ||
self_heal_notify = false | ||
os_install = false | ||
serial_number = "" | ||
suppress_updates = false | ||
ignore_conflicts = false | ||
suppress_from_dock = false | ||
suppress_eula = false | ||
suppress_registration = false | ||
manifest = "" | ||
manifest_file_name = "" | ||
} | ||
# // Example of referencing a package directly within the repository | ||
# resource "jamfpro_package" "jamfpro_package_001" { | ||
# package_name = "tf-ghatest-package-suspiciouspackage" | ||
# package_file_source = "support_files/packages/gha-test-SuspiciousPackage.dmg" | ||
# category_id = "-1" // jamfpro_category.jamfpro_category_001.id | ||
# info = "tf package deployment for demonstration" | ||
# notes = "Uploaded by: terraform-provider-jamfpro plugin." | ||
# priority = 10 | ||
# reboot_required = true | ||
# fill_user_template = false | ||
# fill_existing_users = false | ||
# os_requirements = "macOS 10.15.0" | ||
# swu = false | ||
# self_heal_notify = false | ||
# os_install = false | ||
# serial_number = "" | ||
# suppress_updates = false | ||
# ignore_conflicts = false | ||
# suppress_from_dock = false | ||
# suppress_eula = false | ||
# suppress_registration = false | ||
# manifest = "" | ||
# manifest_file_name = "" | ||
# } | ||
|
||
|
||
// https://go.microsoft.com/fwlink/?linkid=853070 - company portal | ||
// https://download.mozilla.org/?product=firefox-latest&os=osx&lang=en-US - firefox | ||
# // https://go.microsoft.com/fwlink/?linkid=853070 - company portal | ||
# // https://download.mozilla.org/?product=firefox-latest&os=osx&lang=en-US - firefox | ||
|
||
// Example of referencing a package from a https source (with redirects) | ||
resource "jamfpro_package" "jamfpro_package_02" { | ||
package_name = "tf-ghatest-package-httpsourceprovider-test" | ||
package_file_source = "https://download.mozilla.org/?product=firefox-latest&os=osx&lang=en-US" | ||
category_id = "-1" | ||
info = "tf package deployment for demonstration" | ||
notes = "Uploaded by: terraform-provider-jamfpro plugin." | ||
priority = 10 | ||
reboot_required = true | ||
fill_user_template = false | ||
fill_existing_users = false | ||
os_requirements = "macOS 10.15.0" | ||
swu = false | ||
self_heal_notify = false | ||
os_install = false | ||
serial_number = "" | ||
suppress_updates = false | ||
ignore_conflicts = false | ||
suppress_from_dock = false | ||
suppress_eula = false | ||
suppress_registration = false | ||
manifest = "" | ||
manifest_file_name = "" | ||
} | ||
# // Example of referencing a package from a https source (with redirects) | ||
# resource "jamfpro_package" "jamfpro_package_02" { | ||
# package_name = "tf-ghatest-package-httpsourceprovider-test" | ||
# package_file_source = "https://download.mozilla.org/?product=firefox-latest&os=osx&lang=en-US" | ||
# category_id = "-1" | ||
# info = "tf package deployment for demonstration" | ||
# notes = "Uploaded by: terraform-provider-jamfpro plugin." | ||
# priority = 10 | ||
# reboot_required = true | ||
# fill_user_template = false | ||
# fill_existing_users = false | ||
# os_requirements = "macOS 10.15.0" | ||
# swu = false | ||
# self_heal_notify = false | ||
# os_install = false | ||
# serial_number = "" | ||
# suppress_updates = false | ||
# ignore_conflicts = false | ||
# suppress_from_dock = false | ||
# suppress_eula = false | ||
# suppress_registration = false | ||
# manifest = "" | ||
# manifest_file_name = "" | ||
# } | ||
|
||
// Example of referencing a package from a https source | ||
resource "jamfpro_package" "jamfpro_package_03" { | ||
package_name = "tf-ghatest-package-httpsourceprovider-companyportal" | ||
package_file_source = "https://go.microsoft.com/fwlink/?linkid=853070" | ||
category_id = "-1" | ||
info = "tf package deployment for demonstration" | ||
notes = "Uploaded by: terraform-provider-jamfpro plugin." | ||
priority = 10 | ||
reboot_required = true | ||
fill_user_template = false | ||
fill_existing_users = false | ||
os_requirements = "macOS 10.15.0" | ||
swu = false | ||
self_heal_notify = false | ||
os_install = false | ||
serial_number = "" | ||
suppress_updates = false | ||
ignore_conflicts = false | ||
suppress_from_dock = false | ||
suppress_eula = false | ||
suppress_registration = false | ||
manifest = "" | ||
manifest_file_name = "" | ||
} | ||
# // Example of referencing a package from a https source | ||
# resource "jamfpro_package" "jamfpro_package_03" { | ||
# package_name = "tf-ghatest-package-httpsourceprovider-companyportal" | ||
# package_file_source = "https://go.microsoft.com/fwlink/?linkid=853070" | ||
# category_id = "-1" | ||
# info = "tf package deployment for demonstration" | ||
# notes = "Uploaded by: terraform-provider-jamfpro plugin." | ||
# priority = 10 | ||
# reboot_required = true | ||
# fill_user_template = false | ||
# fill_existing_users = false | ||
# os_requirements = "macOS 10.15.0" | ||
# swu = false | ||
# self_heal_notify = false | ||
# os_install = false | ||
# serial_number = "" | ||
# suppress_updates = false | ||
# ignore_conflicts = false | ||
# suppress_from_dock = false | ||
# suppress_eula = false | ||
# suppress_registration = false | ||
# manifest = "" | ||
# manifest_file_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,52 +1,52 @@ | ||
resource "jamfpro_policy" "jamfpro_package_policy_001" { | ||
name = "tf-ghatest-policy-packages-suspiciouspackage" | ||
enabled = false | ||
trigger_checkin = false | ||
trigger_enrollment_complete = false | ||
trigger_login = false | ||
trigger_network_state_changed = false | ||
trigger_startup = false | ||
trigger_other = "EVENT" // "USER_INITIATED" for self service trigger , "EVENT" for an event trigger | ||
frequency = "Once per computer" | ||
retry_event = "none" | ||
retry_attempts = -1 | ||
notify_on_each_failed_retry = false | ||
target_drive = "/" | ||
offline = false | ||
category_id = -1 | ||
site_id = -1 | ||
# resource "jamfpro_policy" "jamfpro_package_policy_001" { | ||
# name = "tf-ghatest-policy-packages-suspiciouspackage" | ||
# enabled = false | ||
# trigger_checkin = false | ||
# trigger_enrollment_complete = false | ||
# trigger_login = false | ||
# trigger_network_state_changed = false | ||
# trigger_startup = false | ||
# trigger_other = "EVENT" // "USER_INITIATED" for self service trigger , "EVENT" for an event trigger | ||
# frequency = "Once per computer" | ||
# retry_event = "none" | ||
# retry_attempts = -1 | ||
# notify_on_each_failed_retry = false | ||
# target_drive = "/" | ||
# offline = false | ||
# category_id = -1 | ||
# site_id = -1 | ||
|
||
network_limitations { | ||
minimum_network_connection = "No Minimum" | ||
any_ip_address = false | ||
} | ||
# network_limitations { | ||
# minimum_network_connection = "No Minimum" | ||
# any_ip_address = false | ||
# } | ||
|
||
scope { | ||
all_computers = false | ||
all_jss_users = false | ||
# scope { | ||
# all_computers = false | ||
# all_jss_users = false | ||
|
||
} | ||
# } | ||
|
||
self_service { | ||
use_for_self_service = true | ||
self_service_display_name = "" | ||
install_button_text = "Install" | ||
self_service_description = "" | ||
force_users_to_view_description = false | ||
# self_service { | ||
# use_for_self_service = true | ||
# self_service_display_name = "" | ||
# install_button_text = "Install" | ||
# self_service_description = "" | ||
# force_users_to_view_description = false | ||
|
||
feature_on_main_page = false | ||
} | ||
# feature_on_main_page = false | ||
# } | ||
|
||
payloads { | ||
packages { | ||
distribution_point = "default" // Set the appropriate distribution point | ||
package { | ||
id = jamfpro_package.jamfpro_package_001.id | ||
action = "Install" // The action to perform with the package (e.g., Install, Cache, etc.) | ||
fill_user_template = false // Whether to fill the user template | ||
fill_existing_user_template = false // Whether to fill existing user templates | ||
} | ||
} | ||
} | ||
} | ||
# payloads { | ||
# packages { | ||
# distribution_point = "default" // Set the appropriate distribution point | ||
# package { | ||
# id = jamfpro_package.jamfpro_package_001.id | ||
# action = "Install" // The action to perform with the package (e.g., Install, Cache, etc.) | ||
# fill_user_template = false // Whether to fill the user template | ||
# fill_existing_user_template = false // Whether to fill existing user templates | ||
# } | ||
# } | ||
# } | ||
# } | ||
|