<div dir="auto"><div>Hello Ivan,</div><div dir="auto"><br></div><div dir="auto">I understand the pros/cons between config.xml and systemConfiguration.</div><div dir="auto"><br></div><div dir="auto">To give you some background information, in our case, we are using Saltstack to automate the deployment of midpoint in multiple environments. I use a templated version of config.xml using variables for each environment (DB url, passwords) and I also wanted to configure the instance name and the header color in the same file in order to avoid templating the systemconfiguration.xml file in the saltstack project (I want to keep all midpoint objects in a separated git project).</div><div dir="auto">Since it is not possible for the moment, I will do it through the post-initial-objects import feature.</div><div dir="auto"><br></div><div dir="auto">Best regards,</div><div dir="auto"><br></div><div dir="auto">-Frederic<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Tue, Dec 10, 2019, 10:33 Ivan Noris <<a href="mailto:ivan.noris@evolveum.com">ivan.noris@evolveum.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <p>Hi Fréderic,</p>
    <p>as a matter of fact, both config.xml and System configuration
      have some advantages and disadvantages. For example any change in
      config.xml requires midpoint restart, which is not the case for
      System configuration. Also in case of multi-node deployment, any
      change in config.xml must be done in all nodes, while change of
      System configuration is repository-centric.</p>
    <p>And you can always preconfigure your System configuration using
      post-initial configuration so that it will be loaded when midPoint
      is started for the very first time.</p>
    <p>Best regards,</p>
    <p>Ivan<br>
    </p>
    <div>On 10. 12. 2019 10:20, Frédéric Lohier
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="auto">Hello Pavol,
        <div dir="auto"><br>
        </div>
        <div dir="auto">Thank you, got it!</div>
        <div dir="auto">This would be very useful to customize
          deployment information from the config.xml file using
          constants.</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">-Frederic</div>
        <br>
        <br>
        <div class="gmail_quote" dir="auto">
          <div dir="ltr" class="gmail_attr">On Tue, Dec 10, 2019, 09:26
            Pavol Mederly <<a href="mailto:mederly@evolveum.com" target="_blank" rel="noreferrer">mederly@evolveum.com</a>> wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF">
              <p>Hello Fréderic,</p>
              <p>oh, I've found this message right now. :) As I wrote,
                this could - eventually - work but it's not supported
                right now.</p>
              <p>Best regards,<br>
              </p>
              <pre cols="72">Pavol Mederly
Software developer
<a href="http://evolveum.com" rel="noreferrer noreferrer" target="_blank">evolveum.com</a>
</pre>
              <div>On 09/12/2019 14:21, Frédéric Lohier wrote:<br>
              </div>
              <blockquote type="cite">
                <div dir="auto">
                  <p style="font-family:sans-serif;font-size:12.8px">Hello,</p>
                  <p style="font-family:sans-serif;font-size:12.8px"> </p>
                  <p style="font-family:sans-serif;font-size:12.8px">I
                    am trying to make use of the constants as described
                    here, but the systemConfiguration object doesn’t
                    resolve the constant.</p>
                  <p style="font-family:sans-serif;font-size:12.8px"> </p>
                  <p style="font-family:sans-serif;font-size:12.8px">In
                    midpoint.home/config.xml I have the following :</p>
                  <p style="font-family:sans-serif;font-size:12.8px"> </p>
                  <p style="font-family:sans-serif;font-size:12.8px"><configuration></p>
                  <p style="font-family:sans-serif;font-size:12.8px"> 
                    <midpoint></p>
                  <p style="font-family:sans-serif;font-size:12.8px">   
                    <constants></p>
                  <p style="font-family:sans-serif;font-size:12.8px">     
                    <orgName>Example, Inc.</orgName></p>
                  <p style="font-family:sans-serif;font-size:12.8px">   
                    </constants></p>
                  <p style="font-family:sans-serif;font-size:12.8px"> 
                    </midpoint></p>
                  <p style="font-family:sans-serif;font-size:12.8px"></configuration></p>
                  <p style="font-family:sans-serif;font-size:12.8px"> </p>
                  <p style="font-family:sans-serif;font-size:12.8px">And
                    in systemConfiguration object I have the following :</p>
                  <p style="font-family:sans-serif;font-size:12.8px"> </p>
                  <p style="font-family:sans-serif;font-size:12.8px"><systemConfiguration></p>
                  <p style="font-family:sans-serif;font-size:12.8px"> 
                    <deploymentInformation></p>
                  <p style="font-family:sans-serif;font-size:12.8px">   
                    <customerName></p>
                  <p style="font-family:sans-serif;font-size:12.8px">     
                    <expression></p>
                  <p style="font-family:sans-serif;font-size:12.8px">       
                    <const>orgName</const></p>
                  <p style="font-family:sans-serif;font-size:12.8px">      </expression></p>
                  <p style="font-family:sans-serif;font-size:12.8px">   
                    </customerName></p>
                  <p style="font-family:sans-serif;font-size:12.8px"> 
                    </deploymentInformation></p>
                  <p style="font-family:sans-serif;font-size:12.8px"></systemConfiguration></p>
                  <p style="font-family:sans-serif;font-size:12.8px"> </p>
                  <p style="font-family:sans-serif;font-size:12.8px">Is
                    it supposed to work in the systemConfiguration
                    object ?</p>
                  <p style="font-family:sans-serif;font-size:12.8px">My
                    deployment is using Midpoint 4.0.1-dist</p>
                  <p style="font-family:sans-serif;font-size:12.8px"> </p>
                </div>
                <br>
                <fieldset></fieldset>
                <pre>_______________________________________________
midPoint mailing list
<a href="mailto:midPoint@lists.evolveum.com" rel="noreferrer noreferrer" target="_blank">midPoint@lists.evolveum.com</a>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer noreferrer" target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
              </blockquote>
            </div>
            _______________________________________________<br>
            midPoint mailing list<br>
            <a href="mailto:midPoint@lists.evolveum.com" rel="noreferrer noreferrer" target="_blank">midPoint@lists.evolveum.com</a><br>
            <a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer noreferrer noreferrer" target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
          </blockquote>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
midPoint mailing list
<a href="mailto:midPoint@lists.evolveum.com" target="_blank" rel="noreferrer">midPoint@lists.evolveum.com</a>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank" rel="noreferrer">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
    </blockquote>
    <pre cols="72">-- 
Ivan Noris
Senior Identity Engineer
<a href="http://evolveum.com" target="_blank" rel="noreferrer">evolveum.com</a>
</pre>
  </div>

_______________________________________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com" target="_blank" rel="noreferrer">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer noreferrer" target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
</blockquote></div></div></div>