biemond-orawls icon indicating copy to clipboard operation
biemond-orawls copied to clipboard

Multiple Target Cluster

Open piusranjan opened this issue 6 years ago • 2 comments

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

piusranjan avatar Jun 17 '18 13:06 piusranjan

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

biemond avatar Jun 17 '18 19:06 biemond

Thanks Biemond .

piusranjan avatar Jun 18 '18 09:06 piusranjan