-
Notifications
You must be signed in to change notification settings - Fork 843
Back end - Add "Update new hosts" config #36188
Copy link
Copy link
Labels
#g-orchestrationOrchestration product groupOrchestration product group:releaseReady to write code. Scheduled in a release. See "Making changes" in handbook.Ready to write code. Scheduled in a release. See "Making changes" in handbook.~sub-taskA technical sub-task that is part of a story. (Not QA'd. Not estimated.)A technical sub-task that is part of a story. (Not QA'd. Not estimated.)
Milestone
Metadata
Metadata
Assignees
Labels
#g-orchestrationOrchestration product groupOrchestration product group:releaseReady to write code. Scheduled in a release. See "Making changes" in handbook.Ready to write code. Scheduled in a release. See "Making changes" in handbook.~sub-taskA technical sub-task that is part of a story. (Not QA'd. Not estimated.)A technical sub-task that is part of a story. (Not QA'd. Not estimated.)
Type
Projects
Status
Done
Related user story
#31293
Task
This task is to implement the back-end changes needed to set the new "update all hosts" setting on
macos_updates, and to check for this setting when determining whether to update a device's OS during setup.fleet/server/fleet/app.go
Lines 322 to 328 in 25d9420
Condition of satisfaction
The new
macos_updates.update_new_hostssetting should be...PATCH /fleet/configendpoint (for no team)GET /fleet/configendpoint (for no team)PATCH /fleet/teams/:idendpoint (for a team)GET /fleet/teams/:idendpoint (for no team)fleetctl generate-gitopsindefault.ymlfleetctl generate-gitopsinteams/<team-name>.ymlWhen
update_new_hostsis changed for a team:enabled_macos_update_new_hostsactivity will be generated if the setting istruedisabled_macos_update_new_hostsactivity will be generated if the setting isfalse