To model a SoftLayer® environment, log in with
a SoftLayer cloud project and specify the information
that is specific to SoftLayer in a
blueprint.
-
Create the blueprint.
-
Add resources from the palette to the blueprint, such as virtual images.
-
Specify how to install the IBM™ UrbanCode™ Deploy agent:
- If you host your engine in a private SoftLayer network and provision images to that
private network, set the storage_private_url to
true, as shown
in the following code:
image_A:
type: OS::Nova::Server
properties:
name: "My image A"
image: "MyImage123"
metadata:
softlayer_properties:
storage_private_url: true
- Optional:
In the blueprint source code, in the
metadata property for the resource,
specify any virtual image tags.
To parametrize the data, you can specify a list of values. You can also specify a series of
comma-separated strings.
For example, to specify the parameterized tags
blue and
mysql_database, the code looks like the following
example:
resources:
myImageType:
type: OS::Nova::Server
properties:
name: myImageType
image: myImageName
flavor: {get_param: flavor}
key_name: {get_param: key_name}
metadata:
tags: ['blue', 'mysql_database']
If
you do not plan to reuse the tags as parameters, the code looks like the following
example:
resources:
myImageType:
type: OS::Nova::Server
properties:
name: myImageType
image: myImageName
flavor: {get_param: flavor}
key_name: {get_param: key_name}
metadata:
tags: blue, mysql_database
- Create a configuration file, and externalize properties
to the file.
- In the configuration file, ensure that the core OpenStack
types are mapped to SoftLayer types.
The configuration file must have mapping that is similar to
this code:
resource_registry:
OS::Nova::Server : IBM::SoftLayer::Server
Add the components of your application to the blueprint. See Deploying components with blueprints.