RAFW Promote mode
The WAS environment setup has naming standards wherein the server name changes from dev, test, QA and prod.
Is there a way the promote-target can be orchestrated from Build Forge UI, where the user has flexibility to promote the configuration (example, JDBC) from dev to test to qa and PROD by entering in the various server names.
In the current way, we are promoting configuration by creating separate projects for each environment. The specific values for the source cell, node, server are populated in the command line.
Thanks,
Is there a way the promote-target can be orchestrated from Build Forge UI, where the user has flexibility to promote the configuration (example, JDBC) from dev to test to qa and PROD by entering in the various server names.
In the current way, we are promoting configuration by creating separate projects for each environment. The specific values for the source cell, node, server are populated in the command line.
Thanks,
3 answers
Sriram,
Are you attempting to have 1 generic project that can do promotion from any environment to any other environment? Or are you looking for still a promote project per RAFW env/cell that allows you to vary the source ( -opt source.env etc.) options?
--tim
Hi Tim, I am trying to setup generic libraries that can be used across environments. Here is an example and also assumptions
Assumptions
---------------
1) The source and destination environments are similar with number of nodes, servers and clusters.
2) The cell and node names are same, but the cluster and server names will change from environment to environment (dev, test, prod etc)
Library setup
---------------
If I take a standard config resource library, I can clone/copy it and attach at the end the promote specific parameters. I have made them into a drop down and text entry field, so users can pick the source environment.
The challenge is to substitute the cluster and server names in buildforge. I use the while loop to go through the nodes and use .drill to loop through the destination servers. But, I am not sure what I can do to substitute the source server and cluster names. Command below.
While loop
true(${BF_ITERATION}<=${NUMBER_OF_NODES})
.drill ${BEGIN_VARIABLE}NODE${BF_ITERATION}_SERVERS_ON_NODE${END_VARIABLE} exec "${RAFW_HOME}/bin/rafw${SCRIPT_EXT} -e ${ENVIRONMENT} -c ${CELL_NAME} -n ${BEGIN_VARIABLE}NODE${BF_ITERATION}_NODE_NAME${END_VARIABLE} -s $1 ${MODE} was_common_configure_server_all
-opt "source.env=dev1" -opt "source.cell=WASNetwork" -opt "source.node=node1" -opt "source.server=dev_server"