Skip to content

Instantly share code, notes, and snippets.

@yaronp68
Created February 5, 2012 19:07
Show Gist options
  • Select an option

  • Save yaronp68/1747297 to your computer and use it in GitHub Desktop.

Select an option

Save yaronp68/1747297 to your computer and use it in GitHub Desktop.
cloud {
// Mandatory. The name of the cloud, as it will appear in the Cloudify UI.
name = "ec2"
/********
* General configuration information about the cloud driver implementation.
*/
configuration {
// Optional. The cloud implementation class. Defaults to the build in jclouds-based provisioning driver.
className "org.cloudifysource.esc.driver.provisioning.jclouds.DefaultProvisioningDriver"
// Optional. The template name for the management machines. Defaults to the first template in the templates section below.
managementMachineTemplate "SMALL_LINUX_32"
// Optional. Indicates whether internal cluster communications should use the machine private IP. Defaults to true.
connectToPrivateIp true
}
/*************
* Provider specific information.
*/
provider {
// Mandatory. The name of the provider.
// When using the default cloud driver, maps to the Compute Service Context provider name.
provider "aws-ec2"
// Mandatory. All files from this LOCAL directory will be copied to the remote machine directory.
localDirectory "tools/cli/plugins/esc/ec2/upload"
// Mandatory. Files from the local directory will be copied to this directory on the remote machine.
remoteDirectory "/home/ec2-user/gs-files"
// Mandatory. The HTTP/S URL where cloudify can be downloaded from by newly started machines.
cloudifyUrl "http://repository.cloudifysource.org/org/cloudifysource/2.0.1/gigaspaces-cloudify-2.0.1-m1-b1190-13.zip"
// Mandatory. The prefix for new machines started for servies.
machineNamePrefix "cloudify_agent_"
// Optional. Defaults to true. Specifies whether cloudify should try to deploy services on the management machine.
// Do not change this unless you know EXACTLY what you are doing.
dedicatedManagementMachines true
//
managementOnlyFiles ([])
// Optional. Logging level for the intenal cloud provider logger. Defaults to INFO.
sshLoggingLevel "WARNING"
// Mandatory. Name of the new machine/s started as cloudify management machines.
managementGroup "cloudify_manager"
// Mandatory. Number of management machines to start on bootstrap-cloud. In production, should be 2. Can be 1 for dev.
numberOfManagementMachines 1
zones (["agent"])
reservedMemoryCapacityPerMachineInMB 1024
}
/*************
* Cloud authentication information
*/
user {
// Optional. Identity used to access cloud.
// When used with the default driver, maps to the identity used to create the ComputeServiceContext.
user "ENTER_USER"
// Optional. Key used to access cloud.
// When used with the default driver, maps to the credential used to create the ComputeServiceContext.
apiKey "ENTER_API_KEY"
keyFile "cloud-demo.pem"
}
/***********
* Cloud machine templates available with this cloud.
*/
templates ([
// Mandatory. Template Name.
SMALL_LINUX_32 : template{
// Mandatory. Image ID.
imageId "us-east-1/ami-76f0061f"
// Mandatory. Amount of RAM available to machine.
machineMemoryMB 1600
// Mandatory. Hardware ID.
hardwareId "m1.small"
// Optional. Location ID.
locationId "us-east-1"
// Additional template options.
// When used with the default driver, the option names are considered
// method names invoked on the TemplateOptions object with the value as the parameter.
options ([
"securityGroups" : ["default"] as String[],
"keyPair" : "cloud-demo"
])
// Optional. Overrides to default cloud driver behavior.
// When used with the default driver, maps to the overrides properties passed to the ComputeServiceContext a
overrides ([:])
}
])
/*****************
* Optional. Custom properties used to extend existing drivers or create new ones.
*/
custom ([:])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment