Toshio Kuratomi
3fba006207
Update bare exceptions to specify Exception.
...
This will keep us from accidentally catching program-exiting exceptions
like KeyboardInterupt and SystemExit.
6 years ago
Yunge Zhu
3793bcf481
update doc in contrib\inventory\azure_rm.py ( #46939 )
...
* add inventory note
* typo
6 years ago
Miguel C
fa8154db40
Fix #43917 ( #43929 )
...
Support upper/lower case resource groups
6 years ago
Etienne Deneuve
379fb87b44
add group_by_os_family in azure dynamic inventory ( #40702 )
6 years ago
Yuwei Zhou
60ea14fe1f
Retrive subscription id from env ( #42036 )
7 years ago
Jon Dufresne
bf304832ff
Prefer readthedocs.io instead of readthedocs.org for doc links ( #41537 )
...
Read the Docs moved hosting to readthedocs.io instead of
readthedocs.org. Fix all links in the project.
For additional details, see:
https://blog.readthedocs.com/securing-subdomains/
> Starting today, Read the Docs will start hosting projects from
> subdomains on the domain readthedocs.io, instead of on
> readthedocs.org. This change addresses some security concerns around
> site cookies while hosting user generated data on the same domain as
> our dashboard.
7 years ago
Yunge Zhu
bd34194ace
add adfs_authority_url arg in azure_rm.py ( #41071 )
7 years ago
Yunge Zhu
21ea92feca
Fixes #36621 , support adfs auth through adal ( #37909 )
...
* update username/password auth to use adal lib
* remove default client_id after discussion
* fix lint error: trailing whitespace
7 years ago
Yuwei Zhou
127cfd4851
add user-agent to Azure API calls, and support MSI/CLI cred for inventory ( #39785 )
...
* add user agent
* add msi
* support cli
* check subscription
* lint
* fix lint
* fix lint
* fix lint
7 years ago
Sylvain Rabot
521cc3d4e6
[contrib] azure_rm.py add mechanism to force use of private ip as ansible_host ( #36109 )
...
Signed-off-by: Sylvain Rabot <s.rabot@lectra.com>
7 years ago
Patrick Marques
d5cd10c214
Remove unused import from azure dyn inventory ( #34980 )
7 years ago
Tyler Gregory
6dfc82fe3e
Set win_rm protocol to the name, not the full ProtocolTypes object ( #37499 )
7 years ago
Fabrice Flore-Thébault
5b52bfad6d
azure_rm inventory should add "ansible_connection: winrm" in host_vars for windows hosts - fixes #34689 ( #34691 )
...
* fix for https://github.com/ansible/ansible/issues/34689
azure_rm inventory should add "ansible_connection: winrm" in host_vars for windows hosts
* add ansible_connection: winrm - fix for https://github.com/ansible/ansible/issues/34689
7 years ago
Matt Clay
e45c763b64
Fix invalid string escape sequences.
7 years ago
Thomas Stringer
cb01f33d1e
refactor azure dynamic inventory script configparser import to support python3 ( #31370 )
...
* refactor configparser import to support python3
* change ModuleNotFoundError to ImportError
7 years ago
Matt Davis
12700f61e7
fixed incorrect endpoint selection in azure_rm.py
7 years ago
Matt Davis
b3f2d1befe
expose cloud_environment override in azure_rm modules ( #28743 )
...
* Can be set via env, credential profile, or module arg
* Valid values defined by Azure Python SDK, currently `AzureCloud`,`AzureChinaCloud`,`AzureUSGovernment`,`AzureGermanCloud` or any Azure Stack metadata discovery URL.
7 years ago
Sam Doran
f35975f114
PEP8 fixes
7 years ago
Peter Hoffmann
6c9cb05cfd
Use tenant in UserPassCredentials if set.
...
If you have multiple Tenants you need to set the tenant in https://github.com/Azure/msrestazure-for-python/blob/master/msrestazure/azure_active_directory.py otherwise the azure_rm.py call will fail.
7 years ago
James Portman
950e4b6505
Added checks for machine.os_profile is not None before trying to access child attributes ( #22906 )
7 years ago
Matt Martz
d3249e7875
pep8 fixes for contrib ( #24344 )
8 years ago
Matt Davis
cbedc4a12a
azure_rm inventory version comparison fix ( #22341 )
8 years ago
Matt Clay
10d9318de7
PEP 8 indent cleanup. ( #20800 )
...
* PEP 8 E121 cleanup.
* PEP 8 E126 cleanup.
* PEP 8 E122 cleanup.
8 years ago
Matt Clay
d913f69ba1
PEP 8 W291 whitespace cleanup.
8 years ago
Peter Hoffmann
d70b2c8afd
fix typo
8 years ago
Laurent Mazuel
8b9ded3556
Fix bug 17934 : Azure register failure must not be blocking ( #18695 )
...
* Fix bug 17934
* Update link in Azure provider warning log
8 years ago
Andrea Tartaglia
59227d8c31
Removed dict.iteritems() in several other files.
...
This is for py3 compatibility #18506
8 years ago
Matt Davis
6b02d296d7
fix azure_rm.py to work with 2.0.0rc5 or rc6
8 years ago
Robin Schneider
d76dd56ca3
Use addresses and names reserved for documentation
...
Trying to preserve the meaning of the examples. Not all occurrences in
`docsite/rst/playbooks_lookups.rst` have been changed for instance to
allow the unchanged examples to be used for testing.
Related to: #17479
8 years ago
Andrew Dolby
cbbc643317
add default location and env override ( #16854 )
8 years ago
Chris Houseknecht
7964a2fca3
Upgrade to azure 2.0.0rc5 and add locations parameter.
9 years ago
André Cruz
1fdb7613f1
Fix whitespace.
9 years ago
André Cruz
18831c72f9
Use the python executable specified by the environment.
9 years ago
chouseknecht
af5e4abf66
Rename azure inventory script. Fix bug preventing AD user login via environment vars.
9 years ago