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

Update package_file_path in jamfpro_package resource #128

Merged
merged 1 commit into from
Jul 2, 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
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
}
}
}
}