1

I'm trying to automate the Resource mapping for agents in IBM uDeploy. I have a continuous delivery pipeline using Jenkins, Udeploy and Private Cloud.

I'm thinking of a shell/python script which will invoke uDeploy CLI and add the agent to a predefined group in resource tree and add certain components to the agent. The agent name, resource group and component names can predefined in the script.

Here is my resource tree

- INSANE-CI
    * APPS
    * SANDBOX
    * PROTOTYPE

I'm struggling to find documentation about the CLI calls to add an agent to resource group and then add components.

I was wondering has anyone tried to implement this or has anyone any idea how I should approach this?

4

1 回答 1

2

您可以使用资源模板来完成此操作。模板的一部分是代理原型。您将组件资源映射到代理原型。一旦实际代理处于活动状态,它就会自动添加到资源树中。您需要一些代理命名约定以使其正常工作。请参阅https://www.ibm.com/support/knowledgecenter/SS4GSP_6.2.5/com.ibm.udeploy.doc/topics/resources_templates.html

cli 调用应该是 createResource,请参阅https://www.ibm.com/support/knowledgecenter/SS4GSP_6.2.5/com.ibm.udeploy.api.doc/topics/udclient_createresource.html

于 2017-06-29T05:35:51.577 回答