Le 30/10/12 07:42, Petr Bena a écrit : > I want to learn with puppet, but there is no testing repository to > use. Every change needs to be approved by ops and that usually takes > several weeks :/ or it used to.
Hello, Faidon wrote a class to easily setup an instance so it will use a local puppet repository instead of the production one. It is known as 'puppetmaster self'. https://labsconsole.wikimedia.org/wiki/Help:Self-hosted_puppetmaster On an installed and fully working instance, apply puppetmaster::self class. Run 'sudo puppetd -tv' to apply it Once finished, puppet is using the local repository at: /var/lib/git/operations/puppet You can then hack there, run puppetd -tv to test out your change. Once happy, craft a change and send it back to Gerrit. The culprit is that this repo need to be manually synced with the production repository. Usually it is all about doing: cd /var/lib/git/operations/puppet sudo GIT_SSH=/var/lib/git/ssh git pull --rebase We could probably improve this process by writing a few scripts that would easily let us apply a bunch of pending patchset as well as to sync the local repository. For those wondering, you can get help in either the labs-l mailing list at https://lists.wikimedia.org/mailman/listinfo/labs-l and/or in the Freenode IRC channel #wikimedia-labs. cheers, -- Antoine "hashar" Musso _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
