(context)
return {'resources': resources}
Generate configuration.
Generate configuration.
Generate configuration .
def GenerateConfig(context):
  """Generate configuration."""

  master_name = (context.env['deployment'] + '-'
                 + context.env['name'] + '-master')

  resources = [{
      'name': 'minions',
      'type': 'minion.py',
      'properties': {
          'master': master_name,
          'minionCount': context.properties['minionCount'],
          'zone': context.properties['zone']
      }
  }, {
      'name': master_name,
      'type': 'master.py',
      'properties': {
          'zone': context.properties['zone']
      }
  }]

  return {'resources': resources}
def GenerateConfig ( context ) : master_name = ( context . env [ 'deployment' ] + '-' + context . env [ 'name' ] + '-master' ) resources = [ { 'name' : 'minions' , 'type' : 'minion.py' , 'properties' : { 'master' : master_name , 'minionCount' : context . properties [ 'minionCount' ] , 'zone' : context . properties [ 'zone' ] } } , { 'name' : master_name , 'type' : 'master.py' , 'properties' : { 'zone' : context . properties [ 'zone' ] } } ] return { 'resources' : resources }