Last modified: 2014-08-22 18:17:03 UTC
Problem: deployment::target resources belong in the modules that configure them, but deployment::target is highly Wikimedia-specific. Solution (proposed by Bryan D.): have a custom Package provider for Trebuchet. It should also perform the work currently performed by the configuration block for each deployed stack in <manifests/role/deployment.pp>, exporting it to the deployment / salt master nodes or whatever. http://docs.puppetlabs.com/guides/custom_types.html#deploying-and-using-types-and-providers
Another option is to target roles as defined by puppet: https://gerrit.wikimedia.org/r/#/c/107831/ We'll likely need to move the configuration block out of puppet and into a hash for multi-master salt to work well anyway. In the future the configuration hash should be in hiera anyway.
Change 155603 had a related patch set uploaded by BryanDavis: Add 'trebuchet' package provider. https://gerrit.wikimedia.org/r/155603
Change 155603 merged by Ori.livneh: Add 'trebuchet' package provider and role. https://gerrit.wikimedia.org/r/155603