Hi
Il 20/03/20 19:11, syncope developer ha scritto:
Syncope support,
I have a question on deploying or transferring the topology changes
(either in mapping or some configuration ) made in one environment
into another.
If it is a new environment i can copy the MasterContent.xml from one
environment (export) and into another. And restart syncope (tomcat).
But if there is a syncope instance that is functioning (there is
already users in the realm)- I am not able to copy the
MasterContent.xml. Because, once the tasks table has data - syncope
startup is not reading the MasterContent.xml and deploying the
modified/later changes.
How would you recommend deploying such topology changes to a
functioning syncope instant?
You can use swagger [1] / curl to export configurations and import them
to another instance
For example if you need to export connector configurations:
Export:
curl -X GET
"https://syncope-vm.apache.org/syncope/rest/connectors/connector_key"
-H "accept: application/json" -H "X-Syncope-Domain: Master" -H
"Authorization: Basic YWRtaW46cGFzc3dvcmQ="
take the json and update the connector in the other env:
curl -X PUT "https://newenv/syncope/rest/connectors/key" -H "accept:
*/*" -H "X-Syncope-Domain: Master" -H "Authorization: Basic
YWRtaW46cGFzc3dvcmQ=" -H "Content-Type: application/json" -d
"{\"key\":\"string\",\"adminRealm\":\"string\",\"location\":\"string\",\"connectorName\":\"string\",\"bundleName\":\"string\",\"version\":\"string\",\"displayName\":\"string\",\"connRequestTimeout\":0,\"poolConf\":{\"maxObjects\":0,\"minIdle\":0,\"maxIdle\":0,\"maxWait\":0,\"minEvictableIdleTimeMillis\":0},\"conf\":[{\"schema\":{\"name\":\"string\",\"displayName\":\"string\",\"helpMessage\":\"string\",\"type\":\"string\",\"required\":true,\"order\":0,\"confidential\":true,\"defaultValues\":[{}]},\"overridable\":true,\"values\":[{}]}],\"capabilities\":[\"AUTHENTICATE\"]}"
Regards
M
Thanks
Really appreciate your support.
Lat
--
Dott. Marco Di Sabatino Di Diodoro
Tel. +39 3939065570
Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 0859111173
http://www.tirasa.net
Apache Syncope PMC Member
http://people.apache.org/~mdisabatino/