I made some recent changes to the structure of the labs-private puppet repo which introduced a circular dependency between the puppet and private repos. So, today, if you update your puppet repo then subsequent puppet runs will throw errors like:

Could not find class passwords::puppet::database for i-00000861.pmtpa.wmflabs at /etc/puppet/manifests/base.pp:84

To fix, first update your private repo like this:

$ sudo sh -c 'cd /var/lib/git/labs/private && GIT_SSH=/var/lib/git/ssh git pull --rebase'

Then, add a line to your puppet.conf so that it can find modules in the private repo:

$ sudo sh -c "echo 'modulepath=/etc/puppet/private/modules/:/etc/puppet/modules' >> /etc/puppet/puppet.conf"

That will get things unstuck, and subsequent puppet runs will organize things into a stable, happy state.

-Andrew

_______________________________________________
Labs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/labs-l

Reply via email to