mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Fix cloud provider alias reference. Add cloud providers extended data example.
This commit is contained in:
parent
ffb8e70daa
commit
1aee2d5e8f
@ -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'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user