Configuring the cloud discovery service

The cloud discovery service provides information about available images, regions, and flavors to the blueprint design server. This service runs with a default set of options, but you can customize these options.

Procedure

  1. On the computer that hosts the cloud discovery service and the blueprint design server, create a configuration file.
    Note: If you already customized the cloud discovery service options, you can edit the configuration file instead.
    Use the following template for the file:
    import os
    
    
    
    DEBUG = False
    TESTING = False
    LOGTOFILE = True
    LOGFILE = '/var/log/ibm-cloud-discovery-service/ibm-cloud-discovery-service.log'
    BACKUPLOGFILE = '.ibm-cloud-discovery-service.log'
    
    
    # amazon content type
    AMAZON = 'amazon'
    # openstack content type
    OPENSTACK = 'openstack'
    # vmware content type
    VMWARE = 'vmware'
    # softlayer content type
    SOFTLAYER = 'softlayer'
    
    CLOUD_SETTINGS = '''
    {
        "amazon": {
            "regions": [
                {
                    "id": "us-east-1",
                    "name": "US East (Northern Virginia)",
                    "images": [
                    ]
                },
                {
                    "id": "us-west-1",
                    "name": "US West (Northern California)",
                    "images": [
                    ]
                },
                {
                    "id": "us-west-2",
                    "name": "US West (Oregon)",
                    "images": [
                    ]
                },
                {
                    "id": "eu-west-1",
                    "name": "EU (Ireland)",
                    "images": [
                    ]
                },
                {
                    "id": "ap-southeast-1",
                    "name": "Asia Pacific (Singapore)",
                    "images": [
                    ]
                },
                {
                    "id": "ap-northeast-1",
                    "name": "Asia Pacific (Tokyo)",
                    "images": [
                    ]
                },
                {
                    "id": "sa-east-1",
                    "name": "South America (Sao Paulo)",
                    "images": [
                    ]
                },
                {
                    "id": "ap-southeast-2",
                    "name": "Asia Pacific (Sydney)",
                    "images": [
                    ]
                },
                {
                    "id": "eu-central-1",
                    "name": "EU (Frankfurt)",
                    "images": [
                    ]
                },
                {
                    "id": "us-gov-west-1",
                    "name": "AWS GovCloud (US)",
                    "images": [
                    ]
                }
            ]
        },
        "vcenter": {
            "flavors": [
                {
                    "flavor": "m1.tiny",
                    "memory": 512,
                    "disk": 20,
                    "vcpu": 1
                },
                {
                    "flavor": "m1.small",
                    "memory": 2048,
                    "disk": 20,
                    "vcpu": 2
                },
                {
                    "flavor": "m1.medium",
                    "memory": 4096,
                    "disk": 40,
                    "vcpu": 2
                },
                {
                    "flavor": "m1.large",
                    "memory": 8192,
                    "disk": 80,
                    "vcpu": 4
                },
                {
                    "flavor": "m1.xlarge",
                    "memory": 16384,
                    "disk": 100,
                    "vcpu": 8
                }
            ]
        },
        "regions": [
            {
                "id": "RegionOne",
                "name": "RegionOne"
            }
        ],
        "softlayer": {
            "flavors": [
                {
                    "flavor": "m1.tiny",
                    "memory": 1024,
                    "disk": 20,
                    "vcpu": 1
                },
                {
                    "flavor": "m1.small",
                    "memory": 2048,
                    "disk": 20,
                    "vcpu": 2
                },
                {
                    "flavor": "m1.medium",
                    "memory": 4096,
                    "disk": 40,
                    "vcpu": 2
                },
                {
                    "flavor": "m1.large",
                    "memory": 8192,
                    "disk": 80,
                    "vcpu": 4
                },
                {
                    "flavor": "m1.xlarge",
                    "memory": 16384,
                    "disk": 100,
                    "vcpu": 8
                }
            ]
        }
    }
    '''
  2. Set the system variable CLOUDDISCOVERYSERVICE_SETTINGS_FILE to the location of the file. The file can be in any location on the system that hosts the cloud discovery service.
  3. Stop the cloud discovery service. See Stopping the blueprint designer, cloud discovery service, and engine.
  4. Start the cloud discovery service. See Starting the blueprint designer, cloud discovery service, and engine.

What to do next

After you change the configuration file, you must restart the cloud discovery service. When you start the cloud discovery service, a message shows the location of the configuration file.

Now you can use this file to register EC2 images for use in the blueprint design server. See Registering Amazon EC2 images with the cloud discovery service.


Feedback