Assume I have the following actions in my jps manifest:
actions:
installDatabase:
install:
jps: ${baseUrl}/jelastic/postgres/manifest.jps
envName: ${settings.pgEnvName}
displayName: Database cluster
myOtherAction:
- cmd [cp]:
- doSomethingWithTheDatabaseHostname
In the first action, I install my database. It creates a separate Jelastic environment. Then, in the second action, acting on the current environment (not the database), I would like to get the database hostname from the first action. Even more, I'd to have the database master node. How can I do that? I found nothing in the usual Jelastic or cloudscripting documentation on the topic.
EDIT
In the action myOtherAction
, I want to install another jps which needs the hostname of the database installed by the action installDatabase
. It can be that the other jps needs to connect to that database. I don't want to install multiple jps manifests manually. I want to install all the manifests I need automatically. In the case described here, the first manifest installs a database environment. I need to get the node id of the master node of that database and pass it to the next manifest. Is that possible?