Skip to content

Commit

Permalink
Azure acs module (azure_rm_acs.py) (ansible#28522)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
julienstroheker authored and nitzmahone committed Aug 30, 2017
1 parent 99b7cb2 commit fe1153c
Show file tree
Hide file tree
Showing 6 changed files with 880 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/ansible/module_utils/azure_rm_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
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
Expand Down Expand Up @@ -184,6 +185,7 @@ def __init__(self, derived_arg_spec, bypass_checks=False, no_log=False,
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')
Expand Down Expand Up @@ -724,3 +726,14 @@ def dns_client(self):
)
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

0 comments on commit fe1153c

Please sign in to comment.