Fix cloud provider alias reference. Add cloud providers extended data example.

This commit is contained in:
Pedro Algarvio 2013-04-06 15:50:20 +01:00
parent ffb8e70daa
commit 1aee2d5e8f

View File

@ -405,7 +405,7 @@ Some example usage on how to use ``extends`` with profiles. Consider
The above configuration, once parsed would generate the following profiles
data:
.. code-block:: text
.. code-block:: python
[{'deploy': False,
'image': 'ami-08d97e61',
@ -466,8 +466,45 @@ configuration. Consider ``/etc/salt/salt/cloud.providers`` containing:
my-productions-envs:
- extends: develop-envs:ibmsce
- extends: my-develop-envs:ibmsce
user: my-production-user@mycorp.com
location: us-east-1
availability_zone: us-east-1
The above configuration, once parsed would generate the following providers
data:
.. code-block:: python
'providers': {
'my-develop-envs': [
{'availability_zone': 'ap-southeast-1b',
'id': 'HJGRYCILJLKJYG',
'key': 'kdjgfsgm;woormgl/aserigjksjdhasdfgn',
'keyname': 'test',
'location': 'ap-southeast-1',
'private_key': '/root/test.pem',
'provider': 'aws',
'securitygroup': 'quick-start'
},
{'location': 'Raleigh',
'password': 'mypass',
'provider': 'ibmsce',
'ssh_key_file': '/etc/salt/ibm/mykey.pem',
'ssh_key_name': 'mykey',
'user': 'myuser@mycorp.com'
}
],
'my-productions-envs': [
{'availability_zone': 'us-east-1',
'location': 'us-east-1',
'password': 'mypass',
'provider': 'ibmsce',
'ssh_key_file': '/etc/salt/ibm/mykey.pem',
'ssh_key_name': 'mykey',
'user': 'my-production-user@mycorp.com'
}
]
}