mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 17:50:20 +00:00
flesh out saltify driver
(cherry picked from commit 0a730fb)
This commit is contained in:
parent
486cb2b7fa
commit
e970b0623a
3 changed files with 30 additions and 4 deletions
11
conf/cloud
11
conf/cloud
|
@ -97,3 +97,14 @@
|
|||
#
|
||||
#delete_sshkeys: False
|
||||
|
||||
# Whether or not to include grains information in the /etc/salt/minion file
|
||||
# which is generated when the minion is provisioned. For example...
|
||||
# grains:
|
||||
# salt-cloud:
|
||||
# driver: ec2
|
||||
# provider: my_ec2:ec2
|
||||
# profile: micro_ec2
|
||||
#
|
||||
# Default: 'True'
|
||||
#
|
||||
#enable_cloud_grains: 'True'
|
||||
|
|
|
@ -56,6 +56,24 @@ settings can be placed in the provider or profile:
|
|||
sls_list:
|
||||
- web
|
||||
|
||||
|
||||
When salt cloud creates a new minon, it can automatically add grain information
|
||||
to the minion configuration file identifying the sources originally used
|
||||
to define it.
|
||||
|
||||
The generated grain information will appear similar to:
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
grains:
|
||||
salt-cloud:
|
||||
driver: ec2
|
||||
provider: my_ec2:ec2
|
||||
profile: ec2-web
|
||||
|
||||
The generation of the salt-cloud grain can be surpressed by the
|
||||
option ``enable_cloud_grains: 'False'`` in the cloud configuration file.
|
||||
|
||||
Cloud Configuration Syntax
|
||||
==========================
|
||||
|
||||
|
|
|
@ -80,14 +80,11 @@ else:
|
|||
# which simplifies code readability, it adds some unsupported functions into
|
||||
# the driver's module scope.
|
||||
# We list un-supported functions here. These will be removed from the loaded.
|
||||
# TODO: remove the need for this cross-module code. Maybe use NotImplemented
|
||||
LIBCLOUD_FUNCS_NOT_SUPPORTED = (
|
||||
'parallels.avail_sizes',
|
||||
'parallels.avail_locations',
|
||||
'proxmox.avail_sizes',
|
||||
'saltify.destroy',
|
||||
'saltify.avail_sizes',
|
||||
'saltify.avail_images',
|
||||
'saltify.avail_locations',
|
||||
'rackspace.reboot',
|
||||
'openstack.list_locations',
|
||||
'rackspace.list_locations'
|
||||
|
|
Loading…
Add table
Reference in a new issue