func (p *Plugin) GetProduct(args []string, cloudConfig []byte, cs cred.Store) ([]byte, error) {
	c := pluginutil.NewContext(args, pluginutil.ToCliFlagArray(p.GetFlags()))
	err := pcli.UnmarshalFlags(p, c)

	if err != nil {
		return nil, err
	}

	if !p.authnFlagsValid() {
		return nil, ActiveAuthNErr
	}
	deploymentManifest := new(enaml.DeploymentManifest)
	deploymentManifest.SetName(p.DeploymentName)
	deploymentManifest.AddRelease(enaml.Release{Name: releaseName, Version: p.GemfireReleaseVer})
	deploymentManifest.AddStemcell(enaml.Stemcell{
		OS:      p.StemcellName,
		Version: p.StemcellVer,
		Alias:   p.StemcellAlias,
	})
	deploymentManifest.Update = enaml.Update{
		MaxInFlight:     1,
		UpdateWatchTime: "30000-300000",
		CanaryWatchTime: "30000-300000",
		Serial:          false,
		Canaries:        1,
	}

	ltr := NewLocatorGroup(p.NetworkName, p.LocatorStaticIPs, p.GemfireLocatorPort, p.GemfireLocatorRestPort, p.GemfireLocatorVMMemory, p.GemfireLocatorVMSize)
	locatorInstanceGroup := ltr.GetInstanceGroup(p.getLocatorAuthn())
	locatorInstanceGroup.Stemcell = p.StemcellAlias
	locatorInstanceGroup.AZs = p.AZs
	deploymentManifest.AddInstanceGroup(locatorInstanceGroup)

	svr := NewServerGroup(p.NetworkName, p.GemfireServerPort, p.ServerInstanceCount, p.ServerStaticIPs, p.GemfireServerVMSize, p.GemfireServerVMMemory, p.ServerDevRestAPIPort, p.ServerDevActive, ltr)
	serverInstanceGroup := svr.GetInstanceGroup(p.getServerAuthn())
	serverInstanceGroup.Stemcell = p.StemcellAlias
	serverInstanceGroup.AZs = p.AZs
	deploymentManifest.AddInstanceGroup(serverInstanceGroup)
	return deploymentManifest.Bytes(), nil
}
// GetProduct generates a BOSH deployment manifest for p-gemfire.
GetProduct generates a BOSH deployment manifest for p-gemfire.
// GetProduct generates a BOSH deployment manifest for p - gemfire .
func (p *Plugin) GetProduct(args []string, cloudConfig []byte, cs cred.Store) ([]byte, error) {
	c := pluginutil.NewContext(args, pluginutil.ToCliFlagArray(p.GetFlags()))
	err := pcli.UnmarshalFlags(p, c)
	if err != nil {
		return nil, err
	}
	if !p.authnFlagsValid() {
		return nil, ActiveAuthNErr
	}
	deploymentManifest := new(enaml.DeploymentManifest)
	deploymentManifest.SetName(p.DeploymentName)
	deploymentManifest.AddRelease(enaml.Release{Name: releaseName, Version: p.GemfireReleaseVer})
	deploymentManifest.AddStemcell(enaml.Stemcell{
		OS:      p.StemcellName,
		Version: p.StemcellVer,
		Alias:   p.StemcellAlias,
	})
	deploymentManifest.Update = enaml.Update{
		MaxInFlight:     1,
		UpdateWatchTime: "30000-300000",
		CanaryWatchTime: "30000-300000",
		Serial:          false,
		Canaries:        1,
	}
	ltr := NewLocatorGroup(p.NetworkName, p.LocatorStaticIPs, p.GemfireLocatorPort, p.GemfireLocatorRestPort, p.GemfireLocatorVMMemory, p.GemfireLocatorVMSize)
	locatorInstanceGroup := ltr.GetInstanceGroup(p.getLocatorAuthn())
	locatorInstanceGroup.Stemcell = p.StemcellAlias
	locatorInstanceGroup.AZs = p.AZs
	deploymentManifest.AddInstanceGroup(locatorInstanceGroup)
	svr := NewServerGroup(p.NetworkName, p.GemfireServerPort, p.ServerInstanceCount, p.ServerStaticIPs, p.GemfireServerVMSize, p.GemfireServerVMMemory, p.ServerDevRestAPIPort, p.ServerDevActive, ltr)
	serverInstanceGroup := svr.GetInstanceGroup(p.getServerAuthn())
	serverInstanceGroup.Stemcell = p.StemcellAlias
	serverInstanceGroup.AZs = p.AZs
	deploymentManifest.AddInstanceGroup(serverInstanceGroup)
	return deploymentManifest.Bytes(), nil
}
func ( p * Plugin ) GetProduct ( args [ ] string , cloudConfig [ ] byte , cs cred . Store ) ( [ ] byte , error ) { c := pluginutil . NewContext ( args , pluginutil . ToCliFlagArray ( p . GetFlags ( ) ) ) err := pcli . UnmarshalFlags ( p , c ) if err != nil { return nil , err } if ! p . authnFlagsValid ( ) { return nil , ActiveAuthNErr } deploymentManifest := new ( enaml . DeploymentManifest ) deploymentManifest . SetName ( p . DeploymentName ) deploymentManifest . AddRelease ( enaml . Release { Name : releaseName , Version : p . GemfireReleaseVer } ) deploymentManifest . AddStemcell ( enaml . Stemcell { OS : p . StemcellName , Version : p . StemcellVer , Alias : p . StemcellAlias , } ) deploymentManifest . Update = enaml . Update { MaxInFlight : 1 , UpdateWatchTime : " " , CanaryWatchTime : " " , Serial : false , Canaries : 1 , } ltr := NewLocatorGroup ( p . NetworkName , p . LocatorStaticIPs , p . GemfireLocatorPort , p . GemfireLocatorRestPort , p . GemfireLocatorVMMemory , p . GemfireLocatorVMSize ) locatorInstanceGroup := ltr . GetInstanceGroup ( p . getLocatorAuthn ( ) ) locatorInstanceGroup . Stemcell = p . StemcellAlias locatorInstanceGroup . AZs = p . AZs deploymentManifest . AddInstanceGroup ( locatorInstanceGroup ) svr := NewServerGroup ( p . NetworkName , p . GemfireServerPort , p . ServerInstanceCount , p . ServerStaticIPs , p . GemfireServerVMSize , p . GemfireServerVMMemory , p . ServerDevRestAPIPort , p . ServerDevActive , ltr ) serverInstanceGroup := svr . GetInstanceGroup ( p . getServerAuthn ( ) ) serverInstanceGroup . Stemcell = p . StemcellAlias serverInstanceGroup . AZs = p . AZs deploymentManifest . AddInstanceGroup ( serverInstanceGroup ) return deploymentManifest . Bytes ( ) , nil }
GetProduct generates a BOSH deployment manifest for p-gemfire.
GetProduct generates a BOSH deployment manifest for p - gemfire .