mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-30 14:21:26 -07:00
Complete initial network-integration support.
This commit is contained in:
parent
e40ad1ac17
commit
d8733a5455
7 changed files with 168 additions and 12 deletions
|
@ -45,17 +45,30 @@ class AnsibleCoreCI(object):
|
|||
self.instance_id = None
|
||||
self.name = name if name else '%s-%s' % (self.platform, self.version)
|
||||
|
||||
if self.platform == 'windows':
|
||||
self.ssh_key = None
|
||||
aws_platforms = (
|
||||
'windows',
|
||||
'freebsd',
|
||||
'vyos',
|
||||
'junos',
|
||||
)
|
||||
|
||||
osx_platforms = (
|
||||
'osx',
|
||||
)
|
||||
|
||||
if self.platform in aws_platforms:
|
||||
self.endpoint = 'https://14blg63h2i.execute-api.us-east-1.amazonaws.com'
|
||||
self.port = 5986
|
||||
elif self.platform == 'freebsd':
|
||||
self.ssh_key = SshKey(args)
|
||||
self.endpoint = 'https://14blg63h2i.execute-api.us-east-1.amazonaws.com'
|
||||
self.port = 22
|
||||
elif self.platform == 'osx':
|
||||
self.ssh_key = SshKey(args)
|
||||
|
||||
if self.platform == 'windows':
|
||||
self.ssh_key = None
|
||||
self.port = 5986
|
||||
else:
|
||||
self.ssh_key = SshKey(args)
|
||||
self.port = 22
|
||||
elif self.platform in osx_platforms:
|
||||
self.endpoint = 'https://osx.testing.ansible.com'
|
||||
|
||||
self.ssh_key = SshKey(args)
|
||||
self.port = None
|
||||
else:
|
||||
raise ApplicationError('Unsupported platform: %s' % platform)
|
||||
|
@ -213,8 +226,11 @@ class AnsibleCoreCI(object):
|
|||
verbosity=1)
|
||||
return
|
||||
|
||||
with open('examples/scripts/ConfigureRemotingForAnsible.ps1', 'r') as winrm_config_fd:
|
||||
winrm_config = winrm_config_fd.read()
|
||||
if self.platform == 'windows':
|
||||
with open('examples/scripts/ConfigureRemotingForAnsible.ps1', 'r') as winrm_config_fd:
|
||||
winrm_config = winrm_config_fd.read()
|
||||
else:
|
||||
winrm_config = None
|
||||
|
||||
data = dict(
|
||||
config=dict(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue