mirror of
https://github.com/ansible/awx.git
synced 2026-01-23 07:28:02 -03:30
Adding GCE/Azure envvar support to jobs.
This commit is contained in:
parent
5987f60e3f
commit
fb1099234e
@ -492,6 +492,13 @@ class RunJob(BaseTask):
|
||||
elif cloud_cred and cloud_cred.kind == 'rax':
|
||||
env['RAX_USERNAME'] = cloud_cred.username
|
||||
env['RAX_API_KEY'] = decrypt_field(cloud_cred, 'password')
|
||||
elif cloud_cred and cloud_cred.kind == 'gce':
|
||||
env['GCE_EMAIL'] = cloud_cred.username
|
||||
env['GCE_PROJECT'] = cloud_cred.project
|
||||
env['GCE_PEM_FILE_PATH'] = kwargs['private_data_file']
|
||||
elif cloud_cred and cloud_cred.kind == 'azure':
|
||||
env['AZURE_SUBSCRIPTION_ID'] = cloud_cred.username
|
||||
env['AZURE_CERT_PATH'] = kwargs['private_data_file']
|
||||
|
||||
return env
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user