Closed smithjw closed 1 month ago
Running a plan or apply when using the jamfpro_policy resource will always result in changes because of defaults set in Jamf Pro policies under payloads.reboot.
jamfpro_policy
payloads.reboot
To reproduce:
Resource code:
resource "jamfpro_policy" "example" { name = "Example" enabled = true scope { all_computers = false all_jss_users = false } payloads {} }
Changes that will be shown on subsequent plan/apply runs
~ payloads { # (1 unchanged attribute hidden) - reboot { - file_vault_2_reboot = false -> null - message = "This computer will restart in 5 minutes. Please save anything you are working on and log out by choosing Log Out from the bottom of the Apple menu." -> null - minutes_until_reboot = 5 -> null - no_user_logged_in = "Do not restart" -> null - start_reboot_timer_immediately = false -> null - startup_disk = "Current Startup Disk" -> null - user_logged_in = "Do not restart" -> null # (1 unchanged attribute hidden) }
Fixed in latest release
Running a plan or apply when using the
jamfpro_policy
resource will always result in changes because of defaults set in Jamf Pro policies underpayloads.reboot
.To reproduce:
Resource code:
Changes that will be shown on subsequent plan/apply runs