mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 07:01:22 -07:00
Azure acs module (azure_rm_acs.py) (#28522)
* Adding acs module * linter issue * Reduce the VM Size for the int. tests * Short the name of the cluster * Fixing the asserts and title * Fixing VM Scale count in int. tests * Changing the location of the tests * trying eastus2 * disabling acs CI tests until stabilized
This commit is contained in:
parent
99b7cb2068
commit
fe1153c0af
6 changed files with 880 additions and 0 deletions
|
@ -105,6 +105,7 @@ try:
|
|||
from azure.mgmt.storage import StorageManagementClient
|
||||
from azure.mgmt.compute import ComputeManagementClient
|
||||
from azure.mgmt.dns import DnsManagementClient
|
||||
from azure.mgmt.containerservice import ContainerServiceClient
|
||||
from azure.storage.cloudstorageaccount import CloudStorageAccount
|
||||
except ImportError as exc:
|
||||
HAS_AZURE_EXC = exc
|
||||
|
@ -184,6 +185,7 @@ class AzureRMModuleBase(object):
|
|||
self._resource_client = None
|
||||
self._compute_client = None
|
||||
self._dns_client = None
|
||||
self._containerservice_client = None
|
||||
self.check_mode = self.module.check_mode
|
||||
self.facts_module = facts_module
|
||||
# self.debug = self.module.params.get('debug')
|
||||
|
@ -724,3 +726,14 @@ class AzureRMModuleBase(object):
|
|||
)
|
||||
self._register('Microsoft.Dns')
|
||||
return self._dns_client
|
||||
|
||||
@property
|
||||
def containerservice_client(self):
|
||||
self.log('Getting container service client')
|
||||
if not self._containerservice_client:
|
||||
self._containerservice_client = ContainerServiceClient(
|
||||
self.azure_credentials,
|
||||
self.subscription_id
|
||||
)
|
||||
self._register('Microsoft.ContainerService')
|
||||
return self._containerservice_client
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue