biemond-orawls
biemond-orawls copied to clipboard
Multiple Target Cluster
Hi Biemond, I am using puppet version 4.10.1 I wanted to deploy my application (war) to multiple Cluster. That means I wanted to target to multiple cluster. For example . I am creating 2 cluster say , prs_cluster, and nrs_cluster. Is below is the correct usage to target multiple cluster? However I am not getting expected results.
wls_deployments: "%{hiera('domain_name')}/testapp": ensure: "present" deploymenttype: "AppDeployment" stagingmode: "nostage" versionidentifier: "%{hiera('war_version')}" remote: "0" upload: "0" target: prs_cluster, nrs_cluster targettype: "%{hiera('targettypes')}" localpath: "/opt/mycom/demo/dmo-apps1/apps/TestWebApplication.war" timeout: "900"
Thanks, Pius
Hi,
you need to check the wlst deploy operation with the targets parameters. on create I just use deploy https://github.com/biemond/biemond-orawls/blob/puppet4/files/providers/wls_deployment/create.py.erb#L60
On modify I do the taegetting
https://github.com/biemond/biemond-orawls/blob/puppet4/files/providers/wls_deployment/modify.py.erb#L92
Thanks Biemond .