Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Workflow & OpenDeploy Parameterizing
croot
Hello -
We are currently using TeamSite 6.7.1 & OpenDeploy 1.6.1 on Windows 2000 Server to manage content and deploy to multiple websites (managed by apache & using virtual hosts). What we'd like to do is parameterize a single OD script to be used for multiple websites. For example, we'd have a few lines in the OD scripts with parameters. Example:
...
targetFilesystem area="/app/htdocs/external/$srcarea^/" /
...
We have branches/staging areas for each srcarea and would like to use the same OD script for each area. What we are struggling to figure out is how to pass through the $srcarea to the OD script from the workflow.
Workflow integrates OD by updating and changing the file "wft_opendeploy.cfg" under $IW_Home\local\config\wft\solutions. I have added lines (in the following example) to the configuration file. The workflow calls the OD script just fine, but the $srcarea variable is not being passed through.
Example:
branchName=/default/main/external/greencityawards/,deployName=/external/external_to_http,useNode=CMS,dst=greencityawards
A few questions:
1) Is this the right away to approach this problem?
2) Does anyone know how to make this work or has done this in the past?
I relialize this could be accomplished using an external task rather than an open deploy task in the workflow, however we'd like to use the open deploy task if at all possible.
Any help would be greatly appreciate,
Chris
Find more posts tagged with
Comments
nipper
I tend to implement the quickest solution, rather than trying to get another one working. So in this case I run an external task.
Could a deployment task do what you are asking ? Possibly. Is it worth your time trying to figure it out ?
Now you may be doing what I do which is implement one and then post a question to see if the 2nd can be done.
Andy
syal123
We are using the same and it is very simple.
You need to pass the parameter if something other than the default ones as task/Job variable. Access that variable in your od script using $target_env = $task->GetVariable("target_env"); method and then pass the value as.
my $odCmd = qq{$odhome/bin/iwodstart $odConfig -inst $target_env -k area=$areavpath -k filelist=$odFilelist_nonSupport -k target_area=$target_env .........
In your OD file you will use something like.
< target useReplicationFarm="MYFARMNAME">
< targetFilesystem area="$target_env"/>
< comparisonRules dateDifferent="yes"/>
..................................
Let me know if that helps.
croot
Thanks very much... and external task is what I was leaning towards. I will give this a try tomorrow and let you know how it goes.
Thanks again!