Last modified: 2014-08-08 09:19:10 UTC
More than one person {{citation needed}} has asked for the ability to apply roles to multiple wikis within vagrant or to specifically target a role to a given multiwiki. As the puppet config exists today, each multiwiki creating role must recreate other roles as needed by popy-n-paste replacement of mediawiki::extension and mediawiki::settings defines with the analog multiwiki::* defines. It seems like it should be possible to ease this copy-n-paste burden by making the default wiki use the multiwiki features and finding a way to include/exclude wikis from the configuration provided by a role.
One way this might work is for the existing roles to become defines instead of classes and use a system similar to the system used by multiwiki::extension to to specify the wiki to apply the define to. The enable-role/disable-role feature of the plugin that manages puppet/manifests/manifests.d/vagrant-managed.pp could be extended to take an optional 'wiki' parameter to set the wiki for the define. This adds quite a bit of complexity to the whole stack however so there should be some discussion and thought put into making the solution reasonable.
Change 149872 had a related patch set uploaded by BryanDavis: [WIP] Rethink multiwiki support https://gerrit.wikimedia.org/r/149872
Change 149872 merged by jenkins-bot: Rethink multiwiki support https://gerrit.wikimedia.org/r/149872