mm not very inspired by the page, to me the publish module in its current form looks too tightly coupled. You're telling the other nodes what they should do. I think it could be more beneficial to publish a signal (say: DBConfigDone) and in my web-server state, I'd install a handler "watch'es" that signal and handles it.
If you think the publish module in its current form can handle this simple wordpress example though, a more concrete example would be very cool