@pitr-ch Do you mean something like an after_save call on Deployment? I'm not sure we'd want a callback on Hostgroup, since most hostgroups aren't deployment ones. In either case, we probably still need this here since the hostgroup itself needs to be saved first before the deployment, so the one above is more of a "bootstrapping" assignment, but then maybe we also want the callback for future "keep in sync"