summaryrefslogtreecommitdiff
path: root/src/main/conf/sssync.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/conf/sssync.yaml')
-rw-r--r--src/main/conf/sssync.yaml56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/main/conf/sssync.yaml b/src/main/conf/sssync.yaml
new file mode 100644
index 0000000..b285a37
--- /dev/null
+++ b/src/main/conf/sssync.yaml
@@ -0,0 +1,56 @@
+# This YAML file describe all synchronization tasks, with their readers and writers
+
+globals:
+ maxExecTime: 3 # minutes
+
+tasks:
+ - name: People sync
+ opLimits:
+ insert: 300
+ update: 300
+ delete: 300
+ sources:
+ - name: GHRUM, comptes et personnes
+ kind: sql
+ conn: mysql_1
+ mode: PRIMARY_SOURCE
+ query: conf/queries/people.sql
+
+ - name: CSV personnes additionnelles
+ kind: csv
+ mode: MERGE_APPEND
+ path: data/people_append.csv
+
+ - name: CSV correctifs personnes
+ kind: csv
+ mode: MERGE_REPLACE
+ path: data/people_replace.csv
+
+ destination:
+ name: LDAP de test, ou=people
+ kind: ldap
+ conn: ldap_1
+ attr: uid
+ base: ou=people,dc=univ-jfc,dc=fr
+
+ - name: Structure sync
+ opLimits:
+ insert: 10
+ update: 10
+ delete: 10
+ sources:
+ - name: GHRUM, structures
+ kind: sql
+ conn: mysql_1
+ mode: PRIMARY_SOURCE
+ query: conf/queries/structures.sql
+
+ destination:
+ name: LDAP de test, ou=structures
+ kind: ldap
+ conn: ldap_1
+ attr: supannCodeEntite
+ base: ou=structures,dc=univ-jfc,dc=fr
+
+ skipEntryDelete: true
+ skipReadErrors: true \ No newline at end of file