All pastes #2074250 Raw Edit

Unnamed

public text v1 · immutable
#2074250 ·published 2011-06-03 20:17 UTC
rendered paste body
]$ ./aeolus-image.rb -h
Usage: aeolus-image [list|build|push|import|delete] [general options] [command options]

General options:
    -u, --user USERNAME              Conductor username
    -w, --password PASSWORD          Conductor password
        --id ID                      id for a given object
    -r, --provider NAME              name of specific provider (ie ec2-us-east1)
    -d, --daemon                     run as a background process
    -h, --help                       Get usage information for this tool

List options:
    -i, --images                     Retrieve a list of images
    -b, --builds ID                  Retrieve the builds of an image
    -t, --targetimages ID            Retrieve the target images from a build
    -P, --providerimages ID          Retrieve the provider images from a target image
    -g, --targets                    Retrieve the values available for the --target parameter
    -p, --providers                  Retrieve the values available for the --provider parameter
    -a, --accounts                   Retrieve the values available for the --account parameter

Build options:
    -T, --target TARGET1,TARGET2     provider type (ec2, rackspace, rhevm, etc)
    -e, --template FILE              path to file that contains template xml

Push options:
    -B, --build ID                   push all target images for a build, to same providers as previously
    -I, --image ID                   push all the target images for the latest build
    -A, --account NAME               name of specific provider account to use for push

Delete options:
    -m, --targetimage ID             delete target image and its provider images
    -D, --providerimage ID           delete provider image

List Examples:
aeolus-image list --images                  # list available images
aeolus-image list --builds $image_id        # list the builds of an image
aeolus-image list --targetimages $build_id  # list the target images from a build
aeolus-image list --targets                 # list the values available for the --target parameter
aeolus-image list --providers               # list the values available for the --provider parameter
aeolus-image list --accounts                # list the values available for the --account parameter

Build examples:
aeolus-image build --target ec2 --template my.tmpl  # build a new image for ec2 from the template
aeolus-image build --image $image_id                # rebuild the image template and targets from latest build
aeolus-image build --target ec2,rackspace \         # rebuild the image with a new template and set of targets
                   --image $image_i \
                   --template my.tmpl

Push examples:
aeolus-image push --provider ec2-us-east-1 --id $target_image_id  # push the target image to the specified provider
aeolus-image push --build $build_id                               # push all target images for a build, to same providers as previously
aeolus-image push --account $provider_account --build $build_id   # ditto, using a specific provider account
aeolus-image push --image $image_id                               # push all the target images for the latest build

Import examples:
aeolus-image import --provider ec2-us-east-1 --id $ami_id  # import an AMI from the specified provider

Delete examples:
aeolus-image delete --build $build_id               # deletes a build, updating latest/parent references as appropriate
aeolus-image delete --targetimage $target_image     # deletes a target image and its provider images
aeolus-image delete --providerimage $provider_image # deletes a provider image