Normation/rudder-tools — pull request #20 by FlorianHeigl (2014-11-20 13:13:10+00:00)
Title: New script for API sync of objects between a source and destination Rudd...

This patch adds a script to take API-accessible object types to another rudder server.

### To use:
* configure the urls of the source and target servers in the script
* configure API keys on both servers
* configure the API keys in the script

### Caveats:
* Objects missing in the source will be deleted in the target. The source is assumed to be a QA env, the target a PROD env, that should 100% match.
* It is not complete
* Currently rules cannot be transferred via the API and need to be transported using LDAP
* See bug http://www.rudder-project.org/redmine/issues/5786 and http://www.rudder-project.org/redmine/issues/5778

### LDAP for categories

For example, create an LDIF file like this:
```
ldapsearch -x -D cn=manager,cn=rudder-configuration -w password -b "techniqueCategoryId=Active Techniques,ou=Rudder,cn=rudder-configuration" objectClass=activeTechnique > /my/home/techniques.ldif
```