mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Allow to override profile options in lxc.cloud_init_interface
Allows to set LXC template specific options in salt-cloud profile. For example: wheezy-profile: provider: lxc-provider image: debian options: release: wheezy
This commit is contained in:
parent
42bd64b9b3
commit
792e1021f2
1 changed files with 3 additions and 0 deletions
|
@ -179,12 +179,15 @@ def cloud_init_interface(name, vm_=None, **kwargs):
|
|||
size = vm_.get('size', '20G')
|
||||
script = vm_.get('script', None)
|
||||
script_args = vm_.get('script_args', None)
|
||||
options = vm_.get('options', None)
|
||||
if image:
|
||||
profile['template'] = image
|
||||
if vgname:
|
||||
profile['vgname'] = vgname
|
||||
if backing:
|
||||
profile['backing'] = backing
|
||||
if options:
|
||||
profile.update(options)
|
||||
users = vm_.get('users', None)
|
||||
if users is None:
|
||||
users = []
|
||||
|
|
Loading…
Add table
Reference in a new issue