Hand-rolled (non-puppetified) setup on Wikimedia Labs
For a draft of the steps, see Silke's Notes on github (https://github.com/SilkeMeyer/kleinkram/blob/master/wikidata-setup.txt) and Wikidata/Development/Setup.
Our puppet recipes for labs
Please see the documentation on https://wikitech.wikimedia.org/wiki/Nova_Resource:Wikidata-dev#Get_Wikidata_instances_from_Puppet. Here you can get either a Wikidata repo or a client from puppet. These puppet recipes are not used in production, they are for our demo systems only.