Skip to content

Commit

Permalink
Merge pull request #128 from deploymenttheory/release
Browse files Browse the repository at this point in the history
Update package_file_path in jamfpro_package resource
  • Loading branch information
ShocOne authored Jul 2, 2024
2 parents e82c2d1 + 71f0e92 commit e6910a7
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 1 deletion.
2 changes: 1 addition & 1 deletion workload/terraform/jamfpro/packages.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

resource "jamfpro_package" "jamfpro_package_001" {
package_name = "tf-ghatest-package-suspiciouspackage"
package_file_path = "support_files/packages/SuspiciousPackage.dmg"
package_file_path = "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."
Expand Down
52 changes: 52 additions & 0 deletions workload/terraform/jamfpro/policy_packages.tf
Original file line number Diff line number Diff line change
@@ -0,0 +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

network_limitations {
minimum_network_connection = "No Minimum"
any_ip_address = 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

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
}
}
}
}

0 comments on commit e6910a7

Please sign in to comment.