<div dir="ltr">Thanks, we'll give it a try :)</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 src="http://www.identicum.com/img/favicon.ico">Identicum S.A.<br>Jorge Newbery 3226<br>Tel: +54 (11) 4552-3050<br><a href="mailto:mmarchese@identicum.com" target="_blank">mmarchese@identicum.com</a><br><a 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 Wed, Sep 7, 2016 at 12:51 PM, Pavol Mederly <span dir="ltr"><<a 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>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" target="_blank">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" target="_blank">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" target="_blank">https://wiki.evolveum.com/<wbr>display/midPoint/Eclipse+<wbr>plugin+HOWTO</a>.</p>
<p>Best regards,<br>
</p><span class="">
<pre cols="72">Pavol Mederly
Software developer
<a href="http://evolveum.com" target="_blank">evolveum.com</a>
</pre>
</span><div><div class="h5"><div>On 07.09.2016 16:25, Martin Marchese
wrote:<br>
</div>
<blockquote 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 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 src="http://www.identicum.com/img/favicon.ico">Identicum
S.A.<br>
Jorge Newbery 3226<br>
Tel: +54 (11) 4552-3050<br>
<a href="mailto:mmarchese@identicum.com" target="_blank">mmarchese@identicum.com</a><br>
<a 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 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 href="https://evolveum.com/blog/storing-extended-attributes-in-system-configuration-extended-attributes/" target="_blank">https://evolveum.com/blog/stor<wbr>ing-extended-attributes-in-<wbr>system-configuration-extended-<wbr>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 href="https://wiki.evolveum.com/display/%7Emederly/Mappings" target="_blank">https://wiki.evolveum.com/disp<wbr>lay/~mederly/Mappings</a>.</li>
<li>There is an Eclipse plugin being prepared that will
solve this problem, see <a href="https://jira.evolveum.com/browse/MID-3358" target="_blank">https://jira.evolveum.com/brow<wbr>se/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 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 href="http://evolveum.com" target="_blank">evolveum.com</a>
</pre>
<div>
<div>
<div>On 06.09.2016 16:15, Martin Marchese wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div>
<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 src="http://www.identicum.com/img/favicon.ico">Identicum
S.A.<br>
Jorge Newbery 3226<br>
Tel: +54 (11) 4552-3050<br>
<a href="mailto:mmarchese@identicum.com" target="_blank">mmarchese@identicum.com</a><br>
<a 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 href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/mail<wbr>man/listinfo/midpoint</a>
</pre>
</blockquote>
</div>
______________________________<wbr>_________________
midPoint mailing list
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/mail<wbr>man/listinfo/midpoint</a>
</blockquote></div>
</div>
<fieldset></fieldset>
<pre>______________________________<wbr>_________________
midPoint mailing list
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a>
</pre>
</blockquote>
</div></div></div><br>______________________________<wbr>_________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a><br>
<br></blockquote></div><br></div>