Triggering hook after repo sync

I think i figured it out. It looks like the hooks are triggered off of Active Record callbacks, but looking at the source code, I don’t see any Active Record events being triggered. This kind of makes sense - Active Record is for database updates, but Pulp is mostly a separate system (that I assume we interact with via Pulp’s REST API) so it won’t really trigger any Active Record events here. If I’m reading this right, we can only call a hook script if the task goes into an error state.

I was hoping to avoid it, but it looks like I am going to have to code out a distributor plugin for pulp so that I can start promoting content to the lifecycle environment with my salt forumla once the repo sync finishes.

1 Like