2019-11-28 16:41:55 +01:00
|
|
|
From 13855ebda730a0a369c9b98d397d62b9d9a67145 Mon Sep 17 00:00:00 2001
|
2018-09-17 16:18:45 +02:00
|
|
|
From: ed lane <ed.lane.0@gmail.com>
|
|
|
|
Date: Thu, 30 Aug 2018 06:07:08 -0600
|
|
|
|
Subject: [PATCH] Integration of MSI authentication with azurearm cloud
|
|
|
|
driver (#105)
|
|
|
|
|
|
|
|
---
|
2019-04-12 11:57:21 +02:00
|
|
|
salt/cloud/clouds/azurearm.py | 7 ++++++-
|
|
|
|
1 file changed, 6 insertions(+), 1 deletion(-)
|
2018-09-17 16:18:45 +02:00
|
|
|
|
|
|
|
diff --git a/salt/cloud/clouds/azurearm.py b/salt/cloud/clouds/azurearm.py
|
2019-11-28 16:41:55 +01:00
|
|
|
index a422feca4f..9948dedc6c 100644
|
2018-09-17 16:18:45 +02:00
|
|
|
--- a/salt/cloud/clouds/azurearm.py
|
|
|
|
+++ b/salt/cloud/clouds/azurearm.py
|
2019-04-12 11:57:21 +02:00
|
|
|
@@ -58,6 +58,9 @@ The Azure ARM cloud module is used to control access to Microsoft Azure Resource
|
|
|
|
virtual machine type will be "Windows". Only set this parameter on profiles which install Windows operating systems.
|
|
|
|
|
2018-09-17 16:18:45 +02:00
|
|
|
|
|
|
|
+ if using MSI-style authentication:
|
|
|
|
+ * ``subscription_id``
|
|
|
|
+
|
|
|
|
Example ``/etc/salt/cloud.providers`` or
|
|
|
|
``/etc/salt/cloud.providers.d/azure.conf`` configuration:
|
|
|
|
|
2019-04-12 11:57:21 +02:00
|
|
|
@@ -258,7 +261,8 @@ def get_configured_provider():
|
|
|
|
provider = __is_provider_configured(
|
2018-09-17 16:18:45 +02:00
|
|
|
__opts__,
|
|
|
|
__active_provider_name__ or __virtualname__,
|
|
|
|
- ('subscription_id', 'username', 'password')
|
|
|
|
+ required_keys=('subscription_id', 'username', 'password'),
|
|
|
|
+ log_message=False
|
|
|
|
)
|
|
|
|
|
2019-04-12 11:57:21 +02:00
|
|
|
return provider
|
|
|
|
@@ -301,6 +305,7 @@ def get_conn(client_type):
|
2018-09-17 16:18:45 +02:00
|
|
|
)
|
2019-04-12 11:57:21 +02:00
|
|
|
|
2018-09-17 16:18:45 +02:00
|
|
|
if tenant is not None:
|
|
|
|
+ # using Service Principle style authentication...
|
|
|
|
client_id = config.get_cloud_config_value(
|
|
|
|
'client_id',
|
|
|
|
get_configured_provider(), __opts__, search_global=False
|
|
|
|
--
|
2019-11-28 16:41:55 +01:00
|
|
|
2.16.4
|
2018-09-17 16:18:45 +02:00
|
|
|
|
|
|
|
|