[prev in list] [next in list] [prev in thread] [next in thread] 

List:       forgerock-openidm
Subject:    [OpenIDM] Automatic deployment of configuration and scripts
From:       Max Spicer <max.spicer+openidm () york ! ac ! uk>
Date:       2016-06-01 10:02:56
Message-ID: CABbdpz8p_KOSX_4uTCzapn_odiMKSN5inV=TDoHZB1qdGCe27g () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

I'm looking to move over to an automated deployment method for our openidm
configuration and associated scripts, ui elements etc. The aim is to have
deployment to our cluster be triggered automatically by our Jenkins server
after changes are pushed to git.

It seems that openidm's configuration essentially consists of two types of
object: "configuration objects" that are stored in the shared database
repository; and "file-based objects" (such as the contents of the tools,
script and ui directories). Whilst configuration objects are automatically
shared across all servers in a cluster, the file-based objects are not and
need to be manually updated on each server.

I intend to use the openidm cli's configimport sub-command to upload
configuration changes to the repository. To ensure the file-based objects
are in sync across the cluster, I will store these on a shared network
drive that is mounted on each server. I will write a script that checks out
the latest version of our config from our vcs, calls configimport for the
configuration objects and, if that is successful, updates the file-based
objects on the shared drive.

I'm not sure what action I need to take to make openidm notice changes to
the file-based objects once these are updated. My intention is to disable
automatic configuration updates on each server (as per
https://backstage.forgerock.com/#!/docs/openidm/4/integrators-guide/chap-configuration#disabling-auto-config-updates).
 However, the docs state, "Note if automatic polling is enabled, changes to
scripts that are called from a JSON configuration file are taken into
account immediately." What needs to be done to have changes taken into
account when automatic polling is disabled?

I'd appreciate any general comments about this approach.

Thanks,

Max Spicer


[Attachment #5 (text/html)]

<div dir="ltr">Hi,<div><br></div><div>I&#39;m looking to move over to an automated \
deployment method for our openidm configuration and associated scripts, ui elements \
etc. The aim is to have deployment to our cluster be triggered automatically by our \
Jenkins server after changes are pushed to git.</div><div><br></div><div>It seems \
that openidm&#39;s configuration essentially consists of two types of object: \
&quot;configuration objects&quot; that are stored in the shared database repository; \
and &quot;file-based objects&quot; (such as the contents of the tools, script and ui \
directories). Whilst configuration objects are automatically shared across all \
servers in a cluster, the file-based objects are not and need to be manually updated \
on each server.</div><div><br></div><div>I intend to use the openidm cli&#39;s \
configimport sub-command to upload configuration changes to the repository. To ensure \
the file-based objects are in sync across the cluster, I will store these on a shared \
network drive that is mounted on each server. I will write a script that checks out \
the latest version of our config from our vcs, calls configimport for the \
configuration objects and, if that is successful, updates the file-based objects on \
the shared drive.</div><div><br></div><div>I&#39;m not sure what action I need to \
take to make openidm notice changes to the file-based objects once these are updated. \
My intention is to disable automatic configuration updates on each server (as per  <a \
href="https://backstage.forgerock.com/#!/docs/openidm/4/integrators-guide/chap-configu \
ration#disabling-auto-config-updates">https://backstage.forgerock.com/#!/docs/openidm/4/integrators-guide/chap-configuration#disabling-auto-config-updates</a>). \
However, the docs state, &quot;Note if automatic polling is enabled, changes to \
scripts that are called from a JSON configuration file are taken into account \
immediately.&quot; What needs to be done to have changes taken into account when \
automatic polling is disabled?<br></div><div><br></div><div>I&#39;d appreciate any \
general comments about this \
approach.</div><div><br></div><div>Thanks,</div><div><br></div><div>Max \
Spicer</div></div>



_______________________________________________
OpenIDM mailing list
OpenIDM@forgerock.org
https://lists.forgerock.org/mailman/listinfo/openidm


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic