+++ This bug was initially created as a clone of Bug #751246 +++ Need a CLI script which will do the all of the following steps: 1) Use the bundles sub system to provision a new app to a group of JBAS servers. 2) Schedule for immediate execution a group operation to shut the JBAS servers down one at a time 3) Schedule for immediate execution a group operation to start them up one at a time The script should just require the name of the group to deploy to and the application bundle .zip --- Additional comment from lkrejci on 2011-11-15 06:34:27 EST --- Note that because of the nature of the bundle API, it is not enough to supply just the name of the group and the bundle zip to create an application in JBAS - we need to a) create destination for deploying the app to and b) supply the bundle deployment configuration. Please look inside the scripts (when you install the CLI, they are present in the $CLI_HOME/samples directory) to review their documentation. master: http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=6fa90ab75091ba17e9ac07dbd5c95d73c60c0adc release_jon3.x: http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=c66ac42423a93a24efb161d20db26eb8be587647 [BZ 751246] - Sample scripts for deploying apps to JBAS. bundles.js contains generic functions to deploy stuff using the bundle subsystem. deploy-to-and-restart-JBAS.js - contains functions to create and update applications deployed to JBAS instances in a group with a sub-sequential restart of the JBAS instances. --- Additional comment from lkrejci on 2011-11-15 10:05:11 EST --- master: http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=8145ed069b7e2839e7ed29593ed814dfbc2e91ab release_jon3.x: http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=9bbdb09472c5735fb43d8e1a7f2ce4ffd98f1f8f [BZ 751246] - do NOT include implicit resources in the list of resource group members when determining the group member ids in the script. --- Additional comment from mfoley on 2011-11-17 11:30:28 EST --- sample code exists in CLI download .zip in the samples folder. jon 3 branch.
Also look at including bug 751248.
Targeting 3.1.
Tested on 3.1.1.CR2. Original function 'createAppAndRestartJBAS' from deploy-to-and-restart-JBAS.js wasn't working for eap6. Attaching fixed version.
Created attachment 610704 [details] sample script
I have updated the doc (in my SVN repo only). However, if the sample script itself is not right, then it should be fixed in the CLI install, too. I'm assigning this to Lukas, just to check it out.
This should be fixed in master branch by BZ 906495.
As this is MODIFIED or ON_QA, setting milestone to ER1.
Verified on Version: 3.2.0.ER4 Build Number: e413566:057b211