[Labs-l] Hand tuning needed for puppetmaster::self and role::puppet::self instances
Antoine Musso
hashar+wmf at free.fr
Thu Aug 1 10:24:50 UTC 2013
Le 30/07/13 20:37, Andrew Bogott a écrit :
> 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.
You also need to restart the local puppetmaster for the puppet.conf
change to work:
sudo /etc/init.d/puppetmaster restart
Thank you Andrew!
--
Antoine "hashar" Musso
More information about the Labs-l
mailing list