Eric, Thank you for taking the time to share this. This will be really helpful!
Karl On Thu, Mar 4, 2010 at 12:15 AM, Eric Bloch <[email protected]> wrote: > Hi Karl, > > Here's what we do via puppet, which I'm hoping you can kind of read as > pseudo code. In particular, I've removed our credentials. If you copy any > of the code, note that you'd want to use your own USER and PASSWORD (and url > encode correctly in one place). > > In a nut-shell, in puppet we: > > 1) pull down our app via svn > 2) install the ML rpm > 3) copy a setup script into /opt/MarkLogic/Admin > 4) create a link from /opt/MarkLogic/Modules to our app code that needs amps > 4) define a bunch of stuff to use > 5) exec the commands we defined with delays as need be. > > I've attached a copy of setup-markmail.xqy, which has a whole bunch of ML > admin API calls - you can see us clearing out the default 4.[01] stuff there > and creating app servers that point to our app in the filesystem as well. > You'll note that it has two phases and we run some stuff in between the two > phases. In particular, we run another .xqy on an app server we create > during stage 1. That script creates a whole bunch of roles, amps, users, > etc... ; you probably don't need that- I'm just explaining in case you > wonder what's going on here. > > The puppet code is below. > > Good luck! > -Eric > > PS. Credit for the initial work here goes to Ryan Grimm - I've just been a > happy user and maintainer. _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
