<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Martin, <br>
    </p>
    <p>yes I see.<br>
    </p>
    <p>Just by the way, today I've finished version 0.0.2 (something
      like "alpha" version) of the Eclipse plugin that provides this
      functionality:</p>
    <p><img src="cid:part1.D0BFA31E.F898AFF7@evolveum.com" alt=""></p>
    <p>You can take the sources and find the appropriate REST calls
      there (see <a
href="https://github.com/Evolveum/midpoint-ide-plugins/blob/master/com.evolveum.midpoint.eclipse.parent/com.evolveum.midpoint.eclipse.runtime/src/com/evolveum/midpoint/eclipse/runtime/impl/RuntimeServiceImpl.java">RuntimeServiceImpl</a>
      class). It's quite easy to adapt them to your solution. Macro
      expansion is here: <a
href="https://github.com/Evolveum/midpoint-ide-plugins/blob/master/com.evolveum.midpoint.eclipse.parent/com.evolveum.midpoint.eclipse.ui/src/com/evolveum/midpoint/eclipse/ui/util/Expander.java">Expander</a>
      class. The code is not very neat, as it was very quickly knit.<br>
    </p>
    <p>Or you can download and try the plugin itself :-). See here: <a
href="https://wiki.evolveum.com/display/midPoint/Eclipse+plugin+HOWTO">https://wiki.evolveum.com/display/midPoint/Eclipse+plugin+HOWTO</a>.</p>
    <p>Best regards,<br>
    </p>
    <pre class="moz-signature" cols="72">Pavol Mederly
Software developer
evolveum.com
</pre>
    <div class="moz-cite-prefix">On 07.09.2016 16:25, Martin Marchese
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAG3rmdq7Sye3=kBCTpu9Ag=cUabPDOE=avkyL=sO1GbdqEv2FQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Thanks Pavol. I think option #3 is the one that
        applies to my case.
        <div><br>
        </div>
        <div>I'll give it a try.</div>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div>
          <div class="gmail_signature" data-smartmail="gmail_signature">
            <div dir="ltr">
              <div>
                <div dir="ltr">
                  <div>
                    <div dir="ltr">
                      <div>
                        <div dir="ltr">
                          <div>
                            <div dir="ltr"><b><span></span><span></span>Ing.
                                Martín Marchese</b><br>
                              <img moz-do-not-send="true"
                                src="http://www.identicum.com/img/favicon.ico">Identicum
                              S.A.<br>
                              Jorge Newbery 3226<br>
                              Tel: +54 (11) 4552-3050<br>
                              <a moz-do-not-send="true"
                                href="mailto:mmarchese@identicum.com"
                                target="_blank">mmarchese@identicum.com</a><br>
                              <a moz-do-not-send="true"
                                href="http://www.identicum.com"
                                target="_blank">www.identicum.com</a></div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <br>
        <div class="gmail_quote">On Tue, Sep 6, 2016 at 11:41 AM, Pavol
          Mederly <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:mederly@evolveum.com" target="_blank">mederly@evolveum.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <p>Hello Martin,</p>
              <p>the following comes to my mind:<br>
              </p>
              <ol>
                <li>Ivan has once written a nice blogpost about
                  maintaining environment-specific parameters: <a
                    moz-do-not-send="true"
href="https://evolveum.com/blog/storing-extended-attributes-in-system-configuration-extended-attributes/"
                    target="_blank">https://evolveum.com/blog/<wbr>storing-extended-attributes-<wbr>in-system-configuration-<wbr>extended-attributes/</a>.
                  Although this is probably limited to using
                  system-specific properties for mappings only, it is an
                  interesting idea. Please note that it is advised to
                  use the current master so that $configuration variable
                  would be available at all relevant places. Here is a
                  (draft!) document of where it is available as of now:
                  <a moz-do-not-send="true"
                    href="https://wiki.evolveum.com/display/%7Emederly/Mappings"
                    target="_blank">https://wiki.evolveum.com/<wbr>display/~mederly/Mappings</a>.</li>
                <li>There is an Eclipse plugin being prepared that will
                  solve this problem, see <a moz-do-not-send="true"
                    href="https://jira.evolveum.com/browse/MID-3358"
                    target="_blank">https://jira.evolveum.com/<wbr>browse/MID-3358</a>
                  (the fourth point). If time permits, it could be
                  implemented quite soon.<br>
                </li>
                <li>You can always create your own solution that would
                  do the same as Eclipse plugin: maintain your files
                  offline (with some ${ADResource.host} - style
                  references), and run scripts against them that would:</li>
                <ol>
                  <li>expand the references,</li>
                  <li>upload expanded files to server via <a
                      moz-do-not-send="true"
                      href="https://wiki.evolveum.com/display/midPoint/REST+API"
                      target="_blank">REST API</a>.</li>
                </ol>
              </ol>
              Hope this helps,<br>
              <pre cols="72">Pavol Mederly
Software developer
<a moz-do-not-send="true" href="http://evolveum.com" target="_blank">evolveum.com</a>
</pre>
              <div>
                <div class="h5">
                  <div>On 06.09.2016 16:15, Martin Marchese wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">Hi all,
                      <div><br>
                      </div>
                      <div>Working on deploying our resources among
                        different environments I found myself changing
                        credentials for resource service accounts on
                        every new environment (e.g. AD service account
                        has a different password in dev, uat and prod).</div>
                      <div><br>
                      </div>
                      <div>I was wondering if there's a way in which I
                        can store a global config with those values on
                        each environment so I can deploy resources many
                        times without having to change credentials (and
                        any other environment specific value).</div>
                      <div><br>
                      </div>
                      <div>Thanks in advance.<br clear="all">
                        <div>
                          <div data-smartmail="gmail_signature">
                            <div dir="ltr">
                              <div>
                                <div dir="ltr">
                                  <div>
                                    <div dir="ltr">
                                      <div>
                                        <div dir="ltr">
                                          <div>
                                            <div dir="ltr"><b><span></span><span></span>Ing.
                                                Martín Marchese</b><br>
                                              <img
                                                moz-do-not-send="true"
                                                src="http://www.identicum.com/img/favicon.ico">Identicum
                                              S.A.<br>
                                              Jorge Newbery 3226<br>
                                              Tel: +54 (11) 4552-3050<br>
                                              <a moz-do-not-send="true"
href="mailto:mmarchese@identicum.com" target="_blank">mmarchese@identicum.com</a><br>
                                              <a moz-do-not-send="true"
href="http://www.identicum.com" target="_blank">www.identicum.com</a></div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                  </div>
                </div>
                <pre>______________________________<wbr>_________________
midPoint mailing list
<a moz-do-not-send="true" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a moz-do-not-send="true" href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a>
</pre>
    </blockquote>
    

  </div>


______________________________<wbr>_________________

midPoint mailing list

<a moz-do-not-send="true" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>

<a moz-do-not-send="true" href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a>


</blockquote></div>
</div>


<fieldset class="mimeAttachmentHeader"></fieldset>
<pre wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>

</blockquote>
</body></html>