Starting a work project to replicate the chef servers. I’ve done some POC in the lab, now to out it in practice.
Notes, thoughts, ramblings are below:
At this state you have two working chef instances. Remember that the chef bootstrap install will define a random admin password that is set in the server.rb
{“source”:”http://:”,”target”:”http://:”,”continuous”:true}
- setup replication by feeding the json to couch:
$ curl -d @json-file -H “Content-Type: application/json” http://:/_replicate
replication should now be working, you can test it by hitting http://:/_utils you’ll get the web interface
ensure your repo is available on both of the hosts - outstanding task is to sort out automatic pulls to the slaves when there is an update on the master
You should now be able to register a client against the master and then update that master against the master or the slave.
Still need some further testing and work on getting the repos being synced out. Also need to setup git/svn gateways as most the debs are using svn.