我正在使用Ansible uri(rest api)部署Siebel 18,直到成功到达网关集群,我需要手动单击+(表示添加节点服务或节点注册表)之后,我才成功。
下面显示的代码,
- name: deploy gateway cluster profile
uri:
url: "https://{{hostvars[groups['gateway.test.com'][0]]['ansible_default_ipv4']['address']}}:8111/siebel/v1.0/cloudgateway/deployments/gatewaycluster/"
force_basic_auth: yes
user: sadmin
password: sadmin
validate_certs: no
method: POST
body_format: json
return_content: yes
timeout: 600
body:
DeploymentInfo:
ProfileName: sib_gatewaycluster_profile
Action: Deploy
GatewayClusterNodeServiceList:
PhysicalHostIP: gateway.test.com:8011
PhysicalHostIP: web.test.com:8011
PhysicalHostIP: app.test.com:8011
GatewayClusterNodeRegistryList:
PhysicalHostIP: gateway.test.com:8011
PhysicalHostIP: web.test.com:8011
PhysicalHostIP: app.test.com:8011
environment:
https_proxy: ""
register: deploy_gateway_cluster_registries_profile
出现此错误
fatal: [10.1.2.6]: FAILED! => {"changed": false, "connection": "close", "content": "Unrecognized field \"GatewayClusterNodeRegistry\" (class com.siebel.opcgw.cloudgateway.config.gateway.GatewayClusterDeployment), not marked as ignorable (5 known properties: \"DeploymentInfo\", \"RegistryClusterStatus\", \"GatewayClusterNodeRegistryList\", \"ServiceClusterStatus\", \"GatewayClusterNodeServiceList\"])\n at [Source: (String)\"{\"GatewayClusterNodeRegistry\": {\"PhysicalHostIP\":
所以我不知道单击+的效果,如此处所示,
因此在代码之前,
DeploymentInfo:
ProfileName: sib_gatewaycluster_profile
Action: Deploy
应该有一个等效于单击+的命令。
谢谢。