Commit graph

2154 commits

Author SHA1 Message Date
Toshio Kuratomi
2a5812a0e8 Move the import of get_exception to pycompat24 2016-05-18 06:23:10 -07:00
kubilus1
b742ab1263 Check to see existence of same named/location system before creation. (#2150) 2016-05-18 09:26:58 +02:00
Toshio Kuratomi
8ecc3d2516 Port vspherer_copy to pass syntax checks on python3 2016-05-17 10:39:23 -07:00
Michael Scherer
84ec0c8faf Port vca_nat and vca_fw to py3 compatible syntax (#2243)
Since they both depend on library that cannot run on python2.4,
cf https://github.com/ansible/ansible/pull/15870, we can use
directly the python 2.6 syntax, as seen on the porting doc.
2016-05-17 10:34:01 -07:00
Michael Scherer
c8864c3220 Use a python3 compatible notation for octal (#2238) 2016-05-17 10:33:12 -07:00
Adrian Likins
028ef0a2fa Merge pull request #2185 from resmo/feature/cs_router
cloudstack: new module cs_router
2016-05-16 10:40:50 -04:00
Constantin
8c1b672929 Added support for Standard - Infrequent Access stoarage class (#2134) 2016-05-14 10:45:05 +02:00
Rob
9677961b8c Added better example for boto3 exception handling (#2204) 2016-05-11 12:33:52 +02:00
Michael Baydoun
2665acb257 created ec2_customer_gateway module (#1868) 2016-05-10 09:32:08 -07:00
Ash Berlin
d00d0d0846 Add missing urlparse import to s3_bucket (#2110)
This was triggered when S3_URL environment variable was set.
2016-05-10 08:00:13 -07:00
René Moser
eab4b6a3e9 cs_loadbalancer_rule_member: doc fixes (#2184) 2016-05-09 21:39:00 +02:00
Nik LaBelle
bb965eebee change netif type to dict and update example (#2187) 2016-05-09 13:00:05 +02:00
Rene Moser
5e008b928e
cloudstack: new module cs_router 2016-05-08 18:55:53 +02:00
Matt Martz
a4b631522d Merge pull request #2179 from sivel/ansible-testing-exclusions
Ansible testing exclusions
2016-05-07 07:36:41 -05:00
Nick Aslanidis
8be42e0676 corrected version to 2.2. Ensure no vpc-id is returned if detached 2016-05-07 21:00:23 +10:00
Matt Martz
081845b353 Fix HAS_BOTO fail_json call for ec2_ami_copy 2016-05-06 14:00:32 -05:00
Rob
959bbfbf53 Add secondary IP support and allow specifying sec groups by name (#2161) 2016-05-06 00:26:40 +02:00
Lakshmi Balu
cfc6d1cf62 Update vmware_datacenter.py (#2164)
Fixed the syntac issue variable references before definiton
2016-05-05 12:24:30 +02:00
René Moser
46fb2f8d14 cs_template: fix missing docs (#2165) 2016-05-05 11:11:36 +02:00
Rob
47fddc83be Added doc for new get_ec2_security_group_ids_from_names function in m… 2016-05-04 07:30:30 +02:00
Toshio Kuratomi
675d778b50 Fix documentation 2016-05-03 10:10:28 -07:00
krzwalko
12f1c85aa3 Fix datacenter_name and cluster_name module params (#2142) 2016-05-02 08:50:11 -04:00
Brad Davidson
ea8547c86a Fix argument spec for type and tags; return VGW info instead of raw response 2016-04-29 20:29:14 +00:00
Rene Moser
94e6c32608 azure_rm_deployment: fix docs and move import utils near main()
fixes build
2016-04-29 10:10:27 +02:00
Chris Houseknecht
ca310f3d15 Merge pull request #2106 from chouseknecht/azure_rm_deployment
Rename azure_deploy to azure_rm_deployment. Refactor to use azure_com…
2016-04-28 05:47:31 -04:00
chouseknecht
a1cc951d6f Updated per PR comments 2016-04-27 10:48:20 -04:00
Michael Scherer
95018b5fe8 Add partial doc on return value of virt (#2116) 2016-04-27 10:47:44 -04:00
Brian Coca
470460acfc promoted to core, including fixes 2016-04-26 10:01:12 -04:00
James Cammarata
59821bbc30 Removing docker_login as it's now in core 2016-04-26 10:00:16 -04:00
chouseknecht
99f5e394ad
Rename azure_deploy to azure_rm_deployment. Refactor to use azure_common. 2016-04-26 01:32:09 -04:00
Joshua Gilman
e4a4259bc2 Change disk type to str to allow correct usage of rootfs for LXC (#2091) 2016-04-25 13:18:24 +02:00
Adrià Galín Figueras
014297b868 Fixed netif params when create lxc container (#2064) 2016-04-25 08:09:51 +02:00
Rene Moser
de22b721db vmware_vm_shell: doc: add missing defaults 2016-04-23 08:27:21 +02:00
Ritesh Khadgaray
e24c3b93fe vmware_vm_shell: speed up vm_name search (#1909) 2016-04-23 08:19:17 +02:00
Toshio Kuratomi
54a6a470b5 Make main() only run when invoked as a script (style cleanup) 2016-04-20 14:37:46 -07:00
Chris Houseknecht
451420b7e8 Merge pull request #1839 from lmazuel/feature/azure-deploy
Feature/azure deploy
2016-04-19 19:27:06 -04:00
Rob
c3d8b07432 New module - ec2_snapshot_facts (#1088) 2016-04-19 18:07:59 -04:00
Victor Costan
1aecfc1e19 amazon/GUIDELINES.md: Fix copy-paste typo (#2060) 2016-04-19 00:17:08 -04:00
Jay Jahns
05068630ca Add Maintenance Mode support for VMware (#1754)
* add vmware maintenance mode support

* changed version number in documentation

* updated version_added to 2.0 since CI is failing

* changed version to 2.0 due to CI - error asking for 2.1

* added RETURN

* updated formatting of return values and added some to clarify actions taken
2016-04-17 10:42:31 +02:00
Karim Boumedhel
a61742e070 Add cloudinit support to ovirt.py module 2016-04-15 20:23:37 +02:00
Michael Scherer
8e7051ad9d Do not leak password by error for ovirt module (#1991) 2016-04-15 10:27:47 -04:00
Fernando José Pando
3afe117730 Add SQS queue policy attachment functionality (#1716)
* Add SQS queue policy attachment functionality

SQS queue has no attribute 'Policy' until one is attached, so this special
case must be handled uniquely

SQS queue Policy can now be passed in as json
2016-04-14 23:58:44 +02:00
Michael Scherer
bd0deed367 Use type=path for pem_file, since that's a file (#1934) 2016-04-14 23:37:01 +02:00
René Moser
7c613c314c Merge pull request #1997 from evgeni/lxc-container_config-fixes
Lxc container config fixes
2016-04-14 23:16:52 +02:00
David Shrewsbury
e7e440e349 Merge pull request #1967 from rcarrillocruz/os_project_facts
Add os_project_facts module
2016-04-13 14:26:30 -04:00
Jens Carl
10def11d39 Fix code example (#2018) 2016-04-12 18:10:41 -04:00
Ricardo Carrillo Cruz
c65bc5f43d Add os_project_facts module
This module gathers facts about OpenStack projects
2016-04-12 18:02:57 +00:00
René Moser
0fa30f8d93 cloudstack, cs_firewall: fix network not found error in return results (#2006)
Only a small issue in results.

In case of type is ingress, we rely on ip address, but in results we also return the network.
Resolving the ip address works without zone params. If the ip address is not located in the default zone and zone param is not set,
the network won't be found because default zone was used for the network query listing.

However since network param is not used for type ingress we skip the return of the network in results.
2016-04-12 18:46:52 +02:00
René Moser
30a46ee542 cloudstack: cs_instance: fix template not found (#2005)
Let users decide which filter should be used to find the template.
2016-04-12 18:46:02 +02:00
René Moser
442c286b1c Merge pull request #1923 from resmo/fix/cs-template-absent-cross-zones
cloudstack: cs_template: bug fixes
2016-04-12 18:44:23 +02:00
David Shrewsbury
3c9310d608 New OpenStack module os_port_facts (#1986) 2016-04-12 18:25:59 +02:00
Kamil Szczygieł
01a15f8a0b VMware datacenter module shouldn't hold pyvmomi context in Ansible module object (#1568)
* VMware datacenter module rewritten to don't hold pyvmomi context and objects in Ansible module object

fixed exceptions handling

added datacenter destroy result, moved checks

changed wrong value

wrong value again... need some sleep

* check_mode fixes

* state defaults to present, default changed to true

* module check fixes
2016-04-12 11:11:33 +02:00
Evgeni Golov
98514ace6e do not set LXC default config
this was accidentally re-introduced in 7120fb4b

Signed-off-by: Evgeni Golov <evgeni@golov.de>
2016-04-12 07:17:12 +02:00
David Shrewsbury
fa4769f708 Merge pull request #1970 from rcarrillocruz/os_user_facts
Add os_user_facts module
2016-04-11 15:43:57 -04:00
David Shrewsbury
22720d649c Merge pull request #1969 from rcarrillocruz/os_domain_facts
Add os_keystone_domain_facts module
2016-04-11 15:39:41 -04:00
Rene Moser
1d0df46475 cloudstack: cs_template: fix state=extracted
* url arg is optional but we enforced it
* url is in a required together, but args only relevant while registering
2016-04-11 20:02:03 +02:00
Rene Moser
0b9c8213ad cloudstack: fix doc, display_text not required 2016-04-11 20:01:36 +02:00
Rene Moser
2d78c23dc0 cloudstack: cs_template: fix cross_zones template removal 2016-04-11 20:01:27 +02:00
René Moser
31de43d306 Merge pull request #1952 from mscherer/fix_cloudstack
Do not leak passwords in case of error in cloudstack modules
2016-04-10 18:24:26 +02:00
Evgeni Golov
8db3a63983 fix handling of config options that share the same prefix
container_config:
      - "lxc.network.ipv4.gateway=auto"
      - "lxc.network.ipv4=192.0.2.1"

might try to override lxc.network.ipv4.gateway in the second entry as both
start with "lxc.network.ipv4".
use a regular expression to find a line that contains (optional) whitespace
and an = after the key.

Signed-off-by: Evgeni Golov <evgeni@golov.de>
2016-04-10 13:37:00 +02:00
Evgeni Golov
c03e77a63a strip whitespace from key and value before inserting it into the config
before the following would produce four entries:

    container_config:
      - "lxc.network.flags=up"
      - "lxc.network.flags =up"
      - "lxc.network.flags= up"
      - "lxc.network.flags = up"

let's strip the whitespace and insert only one "lxc.network.flags = up"
into the final config

Signed-off-by: Evgeni Golov <evgeni@golov.de>
2016-04-10 13:33:48 +02:00
Ricardo Carrillo Cruz
34045fddb1 Add os_user_facts module
This module gather facts about one or more OpenStack users
2016-04-09 11:43:40 +00:00
Ricardo Carrillo Cruz
d914b3fa84 Add os_keystone_domain_facts module
This module gathers one or more OpenStack domains facts
2016-04-09 11:25:06 +00:00
Michael Scherer
7120fb4b01 Properly label path argument with type='path' (#1940) 2016-04-07 11:25:04 -04:00
Rob
84f2aa6167 Updated Amazon module guidelines regarding boto3
* Updated Amazon module guidelines regarding boto3

* Spelling correction
2016-04-06 09:37:52 -04:00
Andy Baker
204b4bab56 type should be 'list' not the default of 'string' 2016-04-04 14:18:00 -04:00
Evgeni Golov
6bfd2846f8 don't create world-readable archives of LXC containers
with the default umask tar will create a world-readable archive of the

container, which may contain sensitive data



Signed-off-by: Evgeni Golov <evgeni@golov.de>
2016-04-04 11:28:22 -04:00
Michael Scherer
5696e6c33a Do not leak passwords in case of error in cloudstack modules 2016-04-03 10:34:10 +02:00
Evgeni Golov
7c3999a92a do not use a predictable filenames in the LXC plugin
* do not use a predictable filename for the LXC attach script

* don't use predictable filenames for LXC attach script logging

* don't set a predictable archive_path



this should prevent symlink attacks which could result in

* data corruption

* data leakage

* privilege escalation
2016-04-02 01:20:42 -07:00
René Moser
fb3d584abd Merge pull request #1933 from evgeni/no-lxc-default.conf
do not set a default config for lxc containers
2016-04-01 13:29:04 +02:00
Evgeni Golov
185bcbd8f7 explicitly set "default: null" in the docs 2016-04-01 11:04:35 +02:00
Chris Porter
da84e2e9b8 fix security vulnerability in lxc module
octal/decimal confusion makes file world-writable before executing it
2016-03-31 22:55:44 +01:00
John Barker
950e2d9484 restore version_added in dynamodb_table.py 2016-03-31 20:15:32 +01:00
Evgeni Golov
71b0067aa6 do not set a default config for lxc containers
otherwise deploying user-containers fail as these require information
from ~/.config/lxc/default.conf that the LXC tools will load if no
--config was supplied

Signed-off-by: Evgeni Golov <evgeni@golov.de>
2016-03-30 17:08:42 +02:00
Rene Moser
25d7126852 openstack: doc: add return doc, fixes build 2016-03-30 12:56:20 +02:00
David Shrewsbury
6bcd3d624b Add OpenStack os_user_role module 2016-03-25 15:03:30 -04:00
David Shrewsbury
edf697b8bd Add shade version check to os_flavor_facts
The range_search() API was added to the shade library in version
1.5.0 so let's check for that and let the user know they need to
upgrade if they try to use it.
2016-03-24 08:45:00 -04:00
Brian Coca
745df06abc renamed sl to sl_vm and updated docs
namespace for softlayer modules should now be sl_
2016-03-23 12:10:15 -07:00
Brian Coca
b228bfb575 Merge pull request #1020 from mcltn/devel
Added module for SoftLayer
2016-03-23 12:08:28 -07:00
David Shrewsbury
7bebfea77b Merge pull request #1681 from juliakreger/feature/os-ironic-inspect
Add os_ironic_inspect module
2016-03-23 10:22:57 -04:00
René Moser
e285286d1f Merge pull request #1892 from rcarrillocruz/allow_domain_name_os_project
Allow passing domain name on os_project
2016-03-23 08:31:03 +01:00
Rene Moser
d0501864ab dynamodb_table: doc fix 2016-03-23 00:43:37 +01:00
René Moser
eb5809f351 Merge pull request #1443 from dataxu/dev-dynamodb-indexes
Ability to set dynamo db indexes
2016-03-23 00:35:56 +01:00
Ricardo Carrillo Cruz
b560a764c0 Allow passing domain name on os_project 2016-03-22 18:17:10 +00:00
René Moser
aa80e700e5 Merge pull request #1629 from caseylucas/devel
ec2_vpc_subnet: fix edge case where boto returns empty list after subnet creation
2016-03-22 15:35:39 +01:00
René Moser
8d8d418e94 Merge pull request #1865 from dennisconrad/devel
Fix for existing ENIs w/ multiple security groups
2016-03-19 17:52:39 +01:00
René Moser
f91a3cc9e8 Merge pull request #1579 from wimnat/feature/1573
Allow SNS topics to be created without subscriptions.
2016-03-19 14:20:34 +01:00
René Moser
d902a6d9ad Merge pull request #1653 from nand0p/devel
Fix SNS topic attribute typo
2016-03-19 14:12:09 +01:00
René Moser
58654cdac1 Merge pull request #1429 from joelthompson/feature/win_load_password
Ensure ec2_win_password doesn't leak file handle
2016-03-19 14:09:49 +01:00
Rene Moser
ea56151a67 ec2_vpc_dhcp_options: doc fix, add version_added to new args
See #1640
2016-03-19 14:06:54 +01:00
René Moser
5e63d9fb71 Merge pull request #1640 from andynelson/ec2_vpc_options
Updated ec2_vpc_dhcp_options
2016-03-19 14:03:27 +01:00
René Moser
baa702da87 Merge pull request #1726 from kaczynskid/feature/ecs_service_fixes
ecs_service module fixes
2016-03-19 13:47:46 +01:00
René Moser
be03691945 Merge pull request #1727 from kaczynskid/feature/ecs_service_facts_fixes
ecs_service_facts fixes
2016-03-19 13:45:50 +01:00
Alex Kalinin
0a9ac470df Fix vmware_portgroup throwing an error if port group already exists 2016-03-17 17:00:00 -07:00
Toshio Kuratomi
33e1d9d1cb Doc fixes 2016-03-18 09:05:36 -07:00
Dennis Conrad
9acc141082 Fix for existing ENIs w/ multiple security groups
Do a sorted comparison of the list of security groups supplied via `module.params.get('security_groups')` and the list of security groups fetched via `get_sec_group_list(eni.groups)`.  This fixes an incorrect "The specified address is already in use" error if the order of security groups in those lists differ.
2016-03-17 17:08:40 +00:00
René Moser
f62fe7c55b Merge pull request #1733 from skinlayers/devel
Fixes route53_facts to use max_items parameter with record_sets query.
2016-03-16 23:08:32 +01:00
René Moser
a16c9a74f6 Merge pull request #1751 from nonshankus/additional-elb-facts
Adding missing attributes regarding the hosted zone. / Fixes #1549
2016-03-16 22:51:38 +01:00
David Shrewsbury
f47b499bb9 Merge pull request #1528 from Shrews/os_group
Add os_group.py OpenStack module
2016-03-16 15:33:21 -04:00
David Shrewsbury
57ac47ba25 Merge pull request #1552 from Shrews/os_flavor_facts
New OpenStack os_flavor_facts.py module
2016-03-16 15:32:29 -04:00
David Shrewsbury
514b2fbec5 Merge pull request #1520 from Shrews/os_keystone_role
Add new os_keystone_role module.
2016-03-16 15:30:56 -04:00
Laurent Mazuel
a0ee1f37d1 Add user-agent information for analytics 2016-03-15 16:13:29 -07:00
René Moser
6a5e1e8d4d Merge pull request #1614 from resmo/feature/cs_zone_facts
[2.1] cloudstack: new module cs_zone_facts
2016-03-15 23:27:06 +01:00
Andre Price
c69c0f8fd7 Get failed deployments when create fails also 2016-03-14 12:45:06 -07:00
Laurent Mazuel
112355d965 Updated to use ServicePrincipalCredentials class and get rid of requests 2016-03-14 11:22:33 -07:00
Laurent Mazuel
027ae690c4 Fixes after Travis feedback 2016-03-14 11:01:30 -07:00
Laurent Mazuel
36b9fe9ac9 Py2.6 compatible + minor fixes 2016-03-14 10:52:45 -07:00
Laurent Mazuel
a714e1d9f9 Fix YAML documentation 2016-03-14 10:20:36 -07:00
Ritesh Khadgaray
040b358770 Fix test failure for lxc_container
TRACE:
    while parsing a block mapping
      in "<string>", line 33, column 13:
                    description: resulting state of  ...
                    ^
    expected <block end>, but found ','
      in "lxc_container.RETURN", line 419, column 53:
         ... "/tmp/test-container-config.tar",

ERROR: RETURN is not valid YAML. Line 419 column 53
2016-03-13 12:58:51 +05:30
Brian Coca
be66e9d297 add container name to return and document return
fixes #1848
2016-03-12 16:06:02 -05:00
Laurent Mazuel
dd50d741dd Add update from @obsoleted 2016-03-11 16:44:01 -08:00
Laurent Mazuel
4fb6a7e468 Azure plugin using Azure Python SDK 2.0.0rc1 2016-03-11 13:25:28 -08:00
David Justice
547fd41352 add azure resource manager template deployment module 2016-03-11 13:25:28 -08:00
Matt Colton
c6598e3672 Added Softlayer Module 2016-03-10 08:51:18 -06:00
liquidat
0cdd66fa23 remove legacy action style from examples
- "action" style invoking is a legacy way to call modules
- the examples were updated to the typical style of calling complex
  modules:

ovirt:
  parameter1: value1
  parameter2: value2
  ...
2016-03-10 15:14:27 +01:00
Darek Kaczyński
c553e70ed2 Removed debug return values 2016-03-09 14:37:06 +01:00
Julia Kreger
68c8c16082 Add os_ironic_inspect module
Addition of an os_ironic_inspect module to leverage the OpenStack
Baremetal inspector add-on to ironic or ironic driver out-of-band
hardware introspection, if supported and configured.
2016-03-08 09:55:34 -05:00
Rob White
ce9aed9c52 Allow SNS topics to be created without subscriptions. Also added better error handling around boto calls. 2016-03-08 20:59:44 +11:00
Nick Aslanidis
2f56b3c8b4 corrected invalid tag description for CI checks 2016-03-06 16:41:34 +10:00
Nick Aslanidis
9eb9d1c74b corrected required to be bool instead of list 2016-03-06 16:36:13 +10:00
Nick Aslanidis
fa8eb632f8 attempt to fix doc fragment 2016-03-06 16:15:38 +10:00
Nick Aslanidis
26e2c1bf11 updated extends_documentation_fragment and final cr 2016-03-06 16:09:14 +10:00
Brian Coca
6c43731d7c Merge pull request #1776 from rcarrillocruz/use_module_params_cloud_os_project
Fix instantiation of openstack_cloud object in os_project
2016-03-03 18:48:10 -05:00
Brian Coca
30ba3a97ed Merge pull request #1723 from kaczynskid/feature/ecs_task_fixes
ecs_task module documentation fixes
2016-03-03 18:47:08 -05:00
Brian Coca
f6d2763671 Merge pull request #1626 from jcpowermac/vmware_migrate_vmk_fix_20
Resolves issue with vmware_migrate_vmk module for v2.0
2016-03-03 18:45:45 -05:00
Brian Coca
478ca3d321 Merge pull request #1625 from jcpowermac/vmware_vm_vss_dvs_migrate_fix_20
Resolves issue with vmware_vm_vss_dvs_migrate module for v2.0
2016-03-03 18:45:31 -05:00
Brian Coca
9f67ed64a3 Merge pull request #1624 from jcpowermac/vmware_host_fix_20
Resolves issue with vmware_host module for v2.0
2016-03-03 18:45:10 -05:00
Brian Coca
fe5168a395 Merge pull request #1622 from jcpowermac/vmware_dvs_portgroup_fix_20
Resolves issue with vmware_dvs_portgroup module for v2.0
2016-03-03 18:44:56 -05:00
Brian Coca
18c654b90e Merge pull request #1620 from jcpowermac/vmware_cluster_fix_20
Resolves issue with vmware_cluster module for v2.0
2016-03-03 18:44:40 -05:00
Brian Coca
a68ff8c9c8 Merge pull request #1623 from jcpowermac/vmware_dvs_host_fix_20
Resolves issue with vmware_dvs_host module for v2.0
2016-03-03 18:43:47 -05:00
Brian Coca
cda520436e Merge pull request #1591 from resmo/feature/cs_zone
[2.1] cloudstack: new module cs_zone
2016-03-03 18:42:28 -05:00
Brian Coca
ab8b889559 Merge pull request #1590 from resmo/feature/cs_cluster
[2.1] cloudstack: new module cs_cluster
2016-03-03 18:42:05 -05:00
Brian Coca
39b82b3dab Merge pull request #1589 from resmo/feature/cs_pod
[2.1] cloudstack: new module cs_pod
2016-03-03 18:41:41 -05:00
Brian Coca
f5c4af406a Merge pull request #1588 from resmo/feature/cs_instance_facts
[2.1] cloudstack: new module cs_instance_facts
2016-03-03 18:41:21 -05:00
Brian Coca
7ebb8ed3fa Merge pull request #1587 from resmo/feature/cs_resourcelimit
[2.1] cloudstack: new module cs_resourcelimit
2016-03-03 18:41:01 -05:00
Brian Coca
3145ef9467 Merge pull request #1586 from resmo/feature/cs_configuration
[2.1] cloudstack: new module cs_configuration
2016-03-03 18:39:53 -05:00
Ricardo Carrillo Cruz
68d906e8c4 Fix instantiation of openstack_cloud object in os_project
The os_project module instantiates the openstack cloud object
by passing the module params kwargs.
As the params contain a key named 'domain_id', this is used
for domain in the OpenStack connection, instead of the domain value
the user specifies on the OSCC clouds.yaml or OpenStack envvars.
This fix corrects this by popping the 'domain_id' key, so it we
keep the value but it's not passed later on module.params.
2016-03-03 16:34:23 +01:00
Fernando J Pando
1e05ee5b3b author added 2016-03-02 12:30:07 -05:00
Andy Nelson
2a082deca8 Updated ec2_vpc_dhcp_options 2016-03-01 23:42:08 +00:00
Matt Martz
767dd4bdc6 Choices should be a list of true/false not the string BOOLEANS 2016-03-01 16:18:30 -06:00
Matt Martz
f5329eb337 Don't call sys.exit in sns_topic, use HAS_BOTO to fail 2016-03-01 14:22:28 -06:00
Matt Martz
7df0aff7dd DOCUMENTATION fixes for a few modules 2016-03-01 14:22:08 -06:00
Brian Coca
c439cc9ca6 Merge pull request #1621 from jcpowermac/vmware_dvswitch_fix_20
Resolves issue with vmware_dvswitch module for v2.0
2016-03-01 00:16:00 -05:00
Brian Coca
6589718ec4 Merge pull request #1585 from resmo/for-ansible-2.1
[2.1] cloudstack: module updates
2016-03-01 00:10:22 -05:00
Brian Coca
6049368b45 Merge pull request #1580 from jcpowermac/vmware_vswitch_fix_20
Resolves issue with vmware_vswitch module for v2.0
2016-03-01 00:10:02 -05:00
nonshankus
738f4cb27d Adding missing attributes regarding the hosted zone. 2016-02-28 14:36:56 +01:00
Matt Ferrante
c5ce684812 dynamo db indexes 2016-02-26 14:16:34 -05:00
Rene Moser
3b354ddf00 cloudstack: new module cs_zone_facts 2016-02-26 14:55:13 +01:00
Rene Moser
fc0c41a306 cloudstack: new module cs_instance_facts 2016-02-26 14:48:46 +01:00
Gabriel Burkholder
2ef35c33d0 Fixes route53_facts to use max_items parameter with record_sets query. 2016-02-24 16:16:04 -08:00
Darek Kaczyński
df482bfadd ecs_service will now compare whole model and update it if any difference found. Documentation #1483. Workaround for datetime fileds #1348. 2016-02-24 11:57:06 +01:00
Darek Kaczyński
f4a9247232 ecs_service_facts documentation fixes #1483. Workaround for datetime fileds #1348. 2016-02-24 11:56:56 +01:00
Darek Kaczyński
4798b53b06 ecs_task module documentation fixes 2016-02-24 11:52:26 +01:00
Fernando J Pando
fbf9da2119 Fix SNS topic attribute typo
Enables adding SNS topic policy. 'Policy' attribute is capitalized.
2016-02-22 17:53:25 -05:00
naslanidis
b4163e52c5 Added return section to the documentation 2016-02-22 21:29:29 +10:00
naslanidis
20df1189b9 Fixed issue with tag changes affecting vpc attach 2016-02-22 20:32:18 +10:00
Nick Aslanidis
526ee48c0d New AWS module for managing ec2 VPC virtual gateways 2016-02-22 16:16:54 +10:00
Joel Thompson
31ecde6b87 Fix documentation for sns_topic module
Currently the documentation does not correspond to the Ansible standards
for module documentation. This should bring it into compliance.
2016-02-21 20:32:16 -05:00
Brian Coca
14ff9e5030 merged duplicate entries for vdc_name 2016-02-14 11:33:41 -05:00
Matt Davis
462b114033 Merge pull request #1632 from MichaelBaydoun/docfix-ec2_vpc_net_facts
Update ec2_vpc_net_facts.py
2016-02-11 13:33:32 -08:00
Alex Kalinin
bba1dac0f0 Fix opening libvirt esx connection 2016-02-10 18:52:08 -08:00
Joel Thompson
41a2542f00 Ensure ec2_win_password doesn't leak file handle
Currently the module doesn't explicitly close the file handle. This
wraps the reading of the private key in a try/finally block to ensure
the file is properly closed.
2016-02-09 22:56:55 -05:00
Rene Moser
15f2a328a2 cloudstack: new module cs_zone 2016-02-09 22:06:49 +01:00
Rene Moser
dbf260b779 cloudstack: new module cs_pod 2016-02-09 22:05:05 +01:00
Rene Moser
d17fdc1846 cloudstack: new module cs_cluster 2016-02-09 22:03:47 +01:00
Brian Coca
6aeb2ab6cf corrected parameter name and added missing description 2016-02-08 12:13:41 -05:00
Brian Coca
c55e4e6787 fixed misppelled description 2016-02-08 12:07:58 -05:00
Michael Baydoun
198c816b70 Update ec2_vpc_net_facts.py
Corrected version_added
2016-02-08 10:09:23 -05:00
Casey Lucas
14c0e345d6 fix edge case where boto returns empty list after subnet creation 2016-02-05 19:09:54 -06:00
Joseph Callen
35a04ff134 Resolves issue with vmware_migrate_vmk module for v2.0
When this module was written back in May 2015 we were using 1.9.x. Being lazy I added to param the objects that the other functions would need. What I have noticed is in 2.0 exit_json is trying to jsonify those complex objects and failing. This PR resolves that issue with the vmware_migrate_vmk module.

@kamsz reported this issue in https://github.com/ansible/ansible-modules-extras/pull/1568

Playbook
```
- name: Migrate Management vmk
      local_action:
        module: vmware_migrate_vmk
        hostname: "{{ mgmt_ip_address }}"
        username: "{{ vcsa_user }}"
        password: "{{ vcsa_pass }}"
        esxi_hostname: "{{ hostvars[item].hostname }}"
        device: vmk1
        current_switch_name: temp_vswitch
        current_portgroup_name: esx-mgmt
        migrate_switch_name: dvSwitch
        migrate_portgroup_name: Management
      with_items: groups['foundation_esxi']
```

Module Testing
```
TASK [Migrate Management vmk] **************************************************
task path: /opt/autodeploy/projects/emmet/tasks/deploy/migrate_vmk.yml:3
ESTABLISH LOCAL CONNECTION FOR USER: root
localhost EXEC ( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1454695485.85-245405603184252 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1454695485.85-245405603184252 )" )
localhost PUT /tmp/tmpdlhr6t TO /root/.ansible/tmp/ansible-tmp-1454695485.85-245405603184252/vmware_migrate_vmk
localhost EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1454695485.85-245405603184252/vmware_migrate_vmk; rm -rf "/root/.ansible/tmp/ansible-tmp-1454695485.85-245405603184252/" > /dev/null 2>&1
localhost EXEC ( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1454695490.35-143738865490168 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1454695490.35-143738865490168 )" )
localhost PUT /tmp/tmpqfZqh1 TO /root/.ansible/tmp/ansible-tmp-1454695490.35-143738865490168/vmware_migrate_vmk
localhost EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1454695490.35-143738865490168/vmware_migrate_vmk; rm -rf "/root/.ansible/tmp/ansible-tmp-1454695490.35-143738865490168/" > /dev/null 2>&1
localhost EXEC ( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1454695491.96-124154332968882 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1454695491.96-124154332968882 )" )
localhost PUT /tmp/tmpf3rKZq TO /root/.ansible/tmp/ansible-tmp-1454695491.96-124154332968882/vmware_migrate_vmk
localhost EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1454695491.96-124154332968882/vmware_migrate_vmk; rm -rf "/root/.ansible/tmp/ansible-tmp-1454695491.96-124154332968882/" > /dev/null 2>&1
ok: [foundation-vcsa -> localhost] => (item=foundation-esxi-01) => {"changed": false, "invocation": {"module_args": {"current_portgroup_name": "esx-mgmt", "current_switch_name": "temp_vswitch", "device": "vmk1", "esxi_hostname": "cscesxtmp001", "hostname": "172.27.0.100", "migrate_portgroup_name": "Management", "migrate_switch_name": "dvSwitch", "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "username": "root"}, "module_name": "vmware_migrate_vmk"}, "item": "foundation-esxi-01"}
ok: [foundation-vcsa -> localhost] => (item=foundation-esxi-02) => {"changed": false, "invocation": {"module_args": {"current_portgroup_name": "esx-mgmt", "current_switch_name": "temp_vswitch", "device": "vmk1", "esxi_hostname": "cscesxtmp002", "hostname": "172.27.0.100", "migrate_portgroup_name": "Management", "migrate_switch_name": "dvSwitch", "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "username": "root"}, "module_name": "vmware_migrate_vmk"}, "item": "foundation-esxi-02"}
ok: [foundation-vcsa -> localhost] => (item=foundation-esxi-03) => {"changed": false, "invocation": {"module_args": {"current_portgroup_name": "esx-mgmt", "current_switch_name": "temp_vswitch", "device": "vmk1", "esxi_hostname": "cscesxtmp003", "hostname": "172.27.0.100", "migrate_portgroup_name": "Management", "migrate_switch_name": "dvSwitch", "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "username": "root"}, "module_name": "vmware_migrate_vmk"}, "item": "foundation-esxi-03"}
```
2016-02-05 15:04:04 -05:00
Joseph Callen
3ce496c646 missing doc fragment 2016-02-05 14:56:39 -05:00
Joseph Callen
0740753255 Resolves issue with vmware_vm_vss_dvs_migrate module for v2.0
When this module was written back in May 2015 we were using 1.9.x. Being lazy I added to param the objects that the other functions would need. What I have noticed is in 2.0 exit_json is trying to jsonify those complex objects and failing. This PR resolves that issue with the vmware_vm_vss_dvs_migrate module.

@kamsz reported this issue in https://github.com/ansible/ansible-modules-extras/pull/1568

Playbook
```
- name: Migrate VCSA to vDS
      local_action:
        module: vmware_vm_vss_dvs_migrate
        hostname: "{{ mgmt_ip_address }}"
        username: "{{ vcsa_user }}"
        password: "{{ vcsa_pass }}"
        vm_name: "{{ hostname }}"
        dvportgroup_name: Management
```

Module Testing
```
ASK [Migrate VCSA to vDS] *****************************************************
task path: /opt/autodeploy/projects/emmet/site_deploy.yml:260
ESTABLISH LOCAL CONNECTION FOR USER: root
localhost EXEC ( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1454695546.3-207189190861859 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1454695546.3-207189190861859 )" )
localhost PUT /tmp/tmpkzD4pF TO /root/.ansible/tmp/ansible-tmp-1454695546.3-207189190861859/vmware_vm_vss_dvs_migrate
localhost EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1454695546.3-207189190861859/vmware_vm_vss_dvs_migrate; rm -rf "/root/.ansible/tmp/ansible-tmp-1454695546.3-207189190861859/" > /dev/null 2>&1
changed: [foundation-vcsa -> localhost] => {"changed": true, "invocation": {"module_args": {"dvportgroup_name": "Management", "hostname": "172.27.0.100", "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "username": "root", "vm_name": "cscvcatmp001"}, "module_name": "vmware_vm_vss_dvs_migrate"}, "result": null}

```
2016-02-05 14:53:36 -05:00
Joseph Callen
49cfd24ad8 Resolves issue with vmware_host module for v2.0
When this module was written back in May 2015 we were using 1.9.x. Being lazy I added to param the objects that the other functions would need. What I have noticed is in 2.0 exit_json is trying to jsonify those complex objects and failing. This PR resolves that issue with the vmware_host module.

@kamsz reported this issue in https://github.com/ansible/ansible-modules-extras/pull/1568

Playbook
```
    - name: Add Host
      local_action:
        module: vmware_host
        hostname: "{{ mgmt_ip_address }}"
        username: "{{ vcsa_user }}"
        password: "{{ vcsa_pass }}"
        datacenter_name: "{{ mgmt_vdc }}"
        cluster_name: "{{ mgmt_cluster }}"
        esxi_hostname: "{{ hostvars[item].hostname }}"
        esxi_username: "{{ esxi_username }}"
        esxi_password: "{{ site_passwd }}"
        state: present
      with_items: groups['foundation_esxi']
```

Module Testing
```
TASK [Add Host] ****************************************************************
task path: /opt/autodeploy/projects/emmet/site_deploy.yml:214
ESTABLISH LOCAL CONNECTION FOR USER: root
localhost EXEC ( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1454693866.1-87710459703937 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1454693866.1-87710459703937 )" )
localhost PUT /tmp/tmppmr9i9 TO /root/.ansible/tmp/ansible-tmp-1454693866.1-87710459703937/vmware_host
localhost EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1454693866.1-87710459703937/vmware_host; rm -rf "/root/.ansible/tmp/ansible-tmp-1454693866.1-87710459703937/" > /dev/null 2>&1
localhost EXEC ( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1454693943.8-75870536677834 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1454693943.8-75870536677834 )" )
localhost PUT /tmp/tmpVB81f2 TO /root/.ansible/tmp/ansible-tmp-1454693943.8-75870536677834/vmware_host
localhost EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1454693943.8-75870536677834/vmware_host; rm -rf "/root/.ansible/tmp/ansible-tmp-1454693943.8-75870536677834/" > /dev/null 2>&1
localhost EXEC ( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1454693991.56-163414752982563 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1454693991.56-163414752982563 )" )
localhost PUT /tmp/tmpFB7VQB TO /root/.ansible/tmp/ansible-tmp-1454693991.56-163414752982563/vmware_host
localhost EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1454693991.56-163414752982563/vmware_host; rm -rf "/root/.ansible/tmp/ansible-tmp-1454693991.56-163414752982563/" > /dev/null 2>&1
changed: [foundation-vcsa -> localhost] => (item=foundation-esxi-01) => {"changed": true, "invocation": {"module_args": {"cluster_name": "Foundation", "datacenter_name": "Test-Lab", "esxi_hostname": "cscesxtmp001", "esxi_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "esxi_username": "root", "hostname": "172.27.0.100", "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "state": "present", "username": "root"}, "module_name": "vmware_host"}, "item": "foundation-esxi-01", "result": "'vim.HostSystem:host-15'"}
changed: [foundation-vcsa -> localhost] => (item=foundation-esxi-02) => {"changed": true, "invocation": {"module_args": {"cluster_name": "Foundation", "datacenter_name": "Test-Lab", "esxi_hostname": "cscesxtmp002", "esxi_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "esxi_username": "root", "hostname": "172.27.0.100", "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "state": "present", "username": "root"}, "module_name": "vmware_host"}, "item": "foundation-esxi-02", "result": "'vim.HostSystem:host-20'"}
changed: [foundation-vcsa -> localhost] => (item=foundation-esxi-03) => {"changed": true, "invocation": {"module_args": {"cluster_name": "Foundation", "datacenter_name": "Test-Lab", "esxi_hostname": "cscesxtmp003", "esxi_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "esxi_username": "root", "hostname": "172.27.0.100", "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "state": "present", "username": "root"}, "module_name": "vmware_host"}, "item": "foundation-esxi-03", "result": "'vim.HostSystem:host-21'"}

```
2016-02-05 14:48:12 -05:00
Joseph Callen
56559ebc35 Resolves issue with vmware_dvs_host module for v2.0
When this module was written back in May 2015 we were using 1.9.x. Being lazy I added to param the objects that the other functions would need. What I have noticed is in 2.0 exit_json is trying to jsonify those complex objects and failing. This PR resolves that issue with the vmware_dvs_host module.

@kamsz reported this issue in https://github.com/ansible/ansible-modules-extras/pull/1568

Playbook
```
- name: Add Host to dVS
      local_action:
        module: vmware_dvs_host
        hostname: "{{ mgmt_ip_address }}"
        username: "{{ vcsa_user }}"
        password: "{{ vcsa_pass }}"
        esxi_hostname: "{{ hostvars[item].hostname }}"
        switch_name: dvSwitch
        vmnics: "{{ dvs_vmnic }}"
        state: present
      with_items: groups['foundation_esxi']
```
Module Testing
```
TASK [Add Host to dVS] *********************************************************
task path: /opt/autodeploy/projects/emmet/site_deploy.yml:234
ESTABLISH LOCAL CONNECTION FOR USER: root
localhost EXEC ( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1454694039.6-259977654985844 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1454694039.6-259977654985844 )" )
localhost PUT /tmp/tmpGrHqbd TO /root/.ansible/tmp/ansible-tmp-1454694039.6-259977654985844/vmware_dvs_host
localhost EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1454694039.6-259977654985844/vmware_dvs_host; rm -rf "/root/.ansible/tmp/ansible-tmp-1454694039.6-259977654985844/" > /dev/null 2>&1
localhost EXEC ( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1454694058.76-121920794239796 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1454694058.76-121920794239796 )" )
localhost PUT /tmp/tmpkP7DPu TO /root/.ansible/tmp/ansible-tmp-1454694058.76-121920794239796/vmware_dvs_host
localhost EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1454694058.76-121920794239796/vmware_dvs_host; rm -rf "/root/.ansible/tmp/ansible-tmp-1454694058.76-121920794239796/" > /dev/null 2>&1
localhost EXEC ( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1454694090.2-33641188152663 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1454694090.2-33641188152663 )" )
localhost PUT /tmp/tmp216NwV TO /root/.ansible/tmp/ansible-tmp-1454694090.2-33641188152663/vmware_dvs_host
localhost EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1454694090.2-33641188152663/vmware_dvs_host; rm -rf "/root/.ansible/tmp/ansible-tmp-1454694090.2-33641188152663/" > /dev/null 2>&1
changed: [foundation-vcsa -> localhost] => (item=foundation-esxi-01) => {"changed": true, "invocation": {"module_args": {"esxi_hostname": "cscesxtmp001", "hostname": "172.27.0.100", "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "state": "present", "switch_name": "dvSwitch", "username": "root", "vmnics": ["vmnic2"]}, "module_name": "vmware_dvs_host"}, "item": "foundation-esxi-01", "result": "None"}
changed: [foundation-vcsa -> localhost] => (item=foundation-esxi-02) => {"changed": true, "invocation": {"module_args": {"esxi_hostname": "cscesxtmp002", "hostname": "172.27.0.100", "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "state": "present", "switch_name": "dvSwitch", "username": "root", "vmnics": ["vmnic2"]}, "module_name": "vmware_dvs_host"}, "item": "foundation-esxi-02", "result": "None"}
changed: [foundation-vcsa -> localhost] => (item=foundation-esxi-03) => {"changed": true, "invocation": {"module_args": {"esxi_hostname": "cscesxtmp003", "hostname": "172.27.0.100", "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "state": "present", "switch_name": "dvSwitch", "username": "root", "vmnics": ["vmnic2"]}, "module_name": "vmware_dvs_host"}, "item": "foundation-esxi-03", "result": "None"}
```
2016-02-05 14:39:55 -05:00
Joseph Callen
56c1ce3df1 Resolves issue with vmware_dvs_portgroup module for v2.0
When this module was written back in May 2015 we were using 1.9.x. Being lazy I added to param the objects that the other functions would need. What I have noticed is in 2.0 exit_json is trying to jsonify those complex objects and failing. This PR resolves that issue with the vmware_dvs_portgroup module.

@kamsz reported this issue in https://github.com/ansible/ansible-modules-extras/pull/1568

Playbook
```
- name: Create Management portgroup
      local_action:
        module: vmware_dvs_portgroup
        hostname: "{{ mgmt_ip_address }}"
        username: "{{ vcsa_user }}"
        password: "{{ vcsa_pass }}"
        portgroup_name: Management
        switch_name: dvSwitch
        vlan_id: "{{ hostvars[groups['foundation_esxi'][0]].mgmt_vlan_id }}"
        num_ports: 120
        portgroup_type: earlyBinding
        state: present
```

Module Testing
```
TASK [Create Management portgroup] *********************************************
task path: /opt/autodeploy/projects/emmet/tasks/deploy/dvs_network.yml:17
ESTABLISH LOCAL CONNECTION FOR USER: root
localhost EXEC ( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1454693809.13-142252676354410 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1454693809.13-142252676354410 )" )
localhost PUT /tmp/tmpeQ8M1U TO /root/.ansible/tmp/ansible-tmp-1454693809.13-142252676354410/vmware_dvs_portgroup
localhost EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1454693809.13-142252676354410/vmware_dvs_portgroup; rm -rf "/root/.ansible/tmp/ansible-tmp-1454693809.13-142252676354410/" > /dev/null 2>&1
changed: [foundation-vcsa -> localhost] => {"changed": true, "invocation": {"module_args": {"hostname": "172.27.0.100", "num_ports": 120, "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "portgroup_name": "Management", "portgroup_type": "earlyBinding", "state": "present", "switch_name": "dvSwitch", "username": "root", "vlan_id": 2700}, "module_name": "vmware_dvs_portgroup"}, "result": "None"}
```
2016-02-05 14:31:20 -05:00
Joseph Callen
9093c02446 Resolves issue with vmware_dvswitch module for v2.0
When this module was written back in May 2015 we were using 1.9.x. Being lazy I added to param the objects that the other functions would need. What I have noticed is in 2.0 exit_json is trying to jsonify those complex objects and failing. This PR resolves that issue with the vmware_dvswitch module.

@kamsz reported this issue in https://github.com/ansible/ansible-modules-extras/pull/1568

Playbook
```
- name: Create dvswitch
      local_action:
        module: vmware_dvswitch
        hostname: "{{ mgmt_ip_address }}"
        username: "{{ vcsa_user }}"
        password: "{{ vcsa_pass }}"
        datacenter_name: "{{ mgmt_vdc }}"
        switch_name: dvSwitch
        mtu: 1500
        uplink_quantity: 2
        discovery_proto: lldp
        discovery_operation: both
        state: present
```
Module Testing
```
TASK [Create dvswitch] *********************************************************
task path: /opt/autodeploy/projects/emmet/tasks/deploy/dvs_network.yml:3
ESTABLISH LOCAL CONNECTION FOR USER: root
localhost EXEC ( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1454693792.01-113207408596014 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1454693792.01-113207408596014 )" )
localhost PUT /tmp/tmptb3e2c TO /root/.ansible/tmp/ansible-tmp-1454693792.01-113207408596014/vmware_dvswitch
localhost EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1454693792.01-113207408596014/vmware_dvswitch; rm -rf "/root/.ansible/tmp/ansible-tmp-1454693792.01-113207408596014/" > /dev/null 2>&1
changed: [foundation-vcsa -> localhost] => {"changed": true, "invocation": {"module_args": {"datacenter_name": "Test-Lab", "discovery_operation": "both", "discovery_proto": "lldp", "hostname": "172.27.0.100", "mtu": 1500, "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "state": "present", "switch_name": "dvSwitch", "uplink_quantity": 2, "username": "root"}, "module_name": "vmware_dvswitch"}, "result": "'vim.dvs.VmwareDistributedVirtualSwitch:dvs-9'"}
```
2016-02-05 14:25:47 -05:00
Joseph Callen
df7e3b081e Resolves issue with vmware_cluster module for v2.0
When this module was written back in May 2015 we were using 1.9.x. Being lazy I added to param the objects that the other functions would need. What I have noticed is in 2.0 exit_json is trying to jsonify those complex objects and failing. This PR resolves that issue with the vmware_cluster module.

@kamsz reported this issue in https://github.com/ansible/ansible-modules-extras/pull/1568

Playbook
```
    - name: Create Cluster
      local_action:
        module: vmware_cluster
        hostname: "{{ mgmt_ip_address }}"
        username: "{{ vcsa_user }}"
        password: "{{ vcsa_pass }}"
        datacenter_name: "{{ mgmt_vdc }}"
        cluster_name: "{{ mgmt_cluster }}"
        enable_ha: True
        enable_drs: True
        enable_vsan: True
```

Module testing
```
TASK [Create Cluster] **********************************************************
task path: /opt/autodeploy/projects/emmet/site_deploy.yml:188
ESTABLISH LOCAL CONNECTION FOR USER: root
localhost EXEC ( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1454693788.92-14097560271233 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1454693788.92-14097560271233 )" )
localhost PUT /tmp/tmpAJfdPb TO /root/.ansible/tmp/ansible-tmp-1454693788.92-14097560271233/vmware_cluster
localhost EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1454693788.92-14097560271233/vmware_cluster; rm -rf "/root/.ansible/tmp/ansible-tmp-1454693788.92-14097560271233/" > /dev/null 2>&1
changed: [foundation-vcsa -> localhost] => {"changed": true, "invocation": {"module_args": {"cluster_name": "Foundation", "datacenter_name": "Test-Lab", "enable_drs": true, "enable_ha": true, "enable_vsan": true, "hostname": "172.27.0.100", "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "state": "present", "username": "root"}, "module_name": "vmware_cluster"}}
```
2016-02-05 14:14:25 -05:00
Daniel Petty
a1c2cb0a2e Fix indent 2016-02-03 14:36:04 -07:00
Rene Moser
c32569d7f8 cloudstack: cs_instance: implement updating security groups
ACS API implemented in 4.8, has no effect < 4.8.
2016-02-03 14:17:33 +01:00
Rene Moser
c73ed3b47b cloudstack: add new module cs_resourcelimit 2016-02-02 19:35:58 +01:00
Rene Moser
9f97615060 cloudstack: new module cs_configuration 2016-02-02 19:32:49 +01:00
Rene Moser
db31914f58 cloudstack: use CS_HYPERVISORS from cloudstack utils 2016-02-02 19:10:22 +01:00
Matt Martz
d2e3909443 Fix DOCUMENTATION for ec2_vpc_dhcp_options.py and add missing RETURN to ec2_vol_facts.py 2016-02-02 10:00:51 -06:00
Brian Coca
9aac5784d3 Merge pull request #1565 from mjschultz/welex91
Ensure that port_path is split into at most 2 components.
2016-02-01 23:56:02 -05:00
Brian Coca
a2532862d8 Merge pull request #1330 from joelthompson/feature/ec2_vpc_dhcp_options
Add new ec2_vpc_dhcp_options module
2016-02-01 23:48:06 -05:00
Brian Coca
20caf29213 Merge pull request #1113 from shawnsi/vpc-route-table-continued
Additional check mode fixes for ec2_vpc_route_table module
2016-02-01 23:46:38 -05:00
Brian Coca
7e81c60c96 corrected version added 2016-02-01 23:49:05 -05:00
Brian Coca
76feff5b4d Merge pull request #1109 from wimnat/feature/ec2_vol_facts
New module - ec2_vol_facts
2016-02-01 23:43:27 -05:00
Joseph Callen
37d36a5533 Fixed documentation 2016-02-01 11:35:02 -05:00
Joseph Callen
2fc15c5d2b Resolves issue with vmware_vswitch module for v2.0
When this module was written back in May 2015 we were using 1.9.x. Being lazy I added to param the objects that the other functions would need. What I have noticed is in 2.0 exit_json is trying to jsonify those complex objects and failing.

Playbook
```yaml
   - name: Add a temporary vSwitch
      local_action:
        module: vmware_vswitch
        hostname: "{{ inventory_hostname }}"
        username: "{{ esxi_username }}"
        password: "{{ site_passwd }}"
        switch_name: temp_vswitch
        nic_name: "{{ vss_vmnic }}"
        mtu: 1500
```

Module Testing
```bash
TASK [Add a temporary vSwitch] *************************************************
task path: /opt/autodeploy/projects/emmet/tasks/deploy/esxi_network.yml:13
ESTABLISH LOCAL CONNECTION FOR USER: root
localhost EXEC ( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1454342817.37-180776062017566 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1454342817.37-180776062017566 )" )
ESTABLISH LOCAL CONNECTION FOR USER: root
localhost EXEC ( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1454342817.41-201974997737598 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1454342817.41-201974997737598 )" )
ESTABLISH LOCAL CONNECTION FOR USER: root
localhost EXEC ( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1454342817.44-148446986849801 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1454342817.44-148446986849801 )" )
localhost PUT /tmp/tmpLLExSG TO /root/.ansible/tmp/ansible-tmp-1454342817.37-180776062017566/vmware_vswitch
localhost EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1454342817.37-180776062017566/vmware_vswitch; rm -rf "/root/.ansible/tmp/ansible-tmp-1454342817.37-180776062017566/" > /dev/null 2>&1
localhost PUT /tmp/tmpyoAaHt TO /root/.ansible/tmp/ansible-tmp-1454342817.41-201974997737598/vmware_vswitch
localhost EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1454342817.41-201974997737598/vmware_vswitch; rm -rf "/root/.ansible/tmp/ansible-tmp-1454342817.41-201974997737598/" > /dev/null 2>&1
localhost PUT /tmp/tmpPcmaMZ TO /root/.ansible/tmp/ansible-tmp-1454342817.44-148446986849801/vmware_vswitch
localhost EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1454342817.44-148446986849801/vmware_vswitch; rm -rf "/root/.ansible/tmp/ansible-tmp-1454342817.44-148446986849801/" > /dev/null 2>&1
changed: [foundation-esxi-01 -> localhost] => {"changed": true, "invocation": {"module_args": {"hostname": "foundation-esxi-01", "mtu": 1500, "nic_name": "vmnic1", "number_of_ports": 128, "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "state": "present", "switch_name": "temp_vswitch", "username": "root"}, "module_name": "vmware_vswitch"}}
changed: [foundation-esxi-02 -> localhost] => {"changed": true, "invocation": {"module_args": {"hostname": "foundation-esxi-02", "mtu": 1500, "nic_name": "vmnic1", "number_of_ports": 128, "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "state": "present", "switch_name": "temp_vswitch", "username": "root"}, "module_name": "vmware_vswitch"}}
changed: [foundation-esxi-03 -> localhost] => {"changed": true, "invocation": {"module_args": {"hostname": "foundation-esxi-03", "mtu": 1500, "nic_name": "vmnic1", "number_of_ports": 128, "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "state": "present", "switch_name": "temp_vswitch", "username": "root"}, "module_name": "vmware_vswitch"}}

```

Documentation fix
2016-02-01 11:21:38 -05:00
Baptiste Mille-Mathias
a11220228c fix typo
conainerization => containerization
2016-01-31 20:05:45 +01:00
Toshio Kuratomi
36be779888 Remove duplicate documentation fields 2016-01-28 09:20:55 -08:00
Sumit Roy
acc51c2944 Ensure that port_path is split into at most 2 components.
cloudstack: cs_instance: fix do not require name to be set to avoid clashes

Require one of display_name or name. If both is given, name is used as identifier.

cloudstack: fix name is not case insensitive

cloudstack: cs_template: implement state=extracted

Update f5 validate_certs functionality to do the right thing on multiple python versions

This requires the implementation in the module_utils code here
https://github.com/ansible/ansible/pull/13667 to funciton

fixed domain_id to actually be supported

also added domain as an alias
alt fixes #1437

Simplify the code and remove use_unsafe_shell=True

While there is no security issue with this shell snippet, it
is better to not rely on shell and avoid use_unsafe_shell.

Fix for issue #1074. Now able to create volume without replica's.

Improved fix for #1074. Both None and '' transform to fqdn.

Fix for ansible-modules-extras issue #1080
2016-01-28 11:02:34 -06:00
Brian Coca
33213dbc24 Merge pull request #1508 from RajeevNambiar/devel
Update sts_assume_role.py for showing the correct example syntax role…
2016-01-26 00:00:49 -05:00
Brian Coca
65686221af Merge pull request #1488 from robbwagoner/ec2-elb-facts-with-instance-health
Include instance states (InService or OutOfService) as ELB facts
2016-01-25 23:54:29 -05:00
David Shrewsbury
2d7ebf0b1c Add new os_flavor_facts.py module
New module to retrieve facts about existing instance flavors.
By default, facts on all available flavors will be returned.
This can be narrowed by naming a flavor or specifying criteria
about flavor RAM or VCPUs.
2016-01-25 13:00:45 -05:00
Rob White
0d86bc8d6b Add missing doc fragments 2016-01-24 11:11:49 +11:00
Shawn Siefkas
ddcc15a60f Fixing check mode support for vpc route tables
Loop compatibility for dry run exception handling

Route table deletion dry run handler

Fixing regression in propagating_vgw_ids default value

Adjusting truthiness of changed attribute for route manipulation

Updating propagating_vgw_ids default in docstring
2016-01-22 11:32:24 -06:00
David Shrewsbury
4094154afa Add os_group.py OpenStack module
Allows an admin (or privileged user) to manage Keystone v3
groups.
2016-01-20 12:25:42 -05:00
David Shrewsbury
46b4622eba Fix exception output for os_keystone_domain.
The message attribute of a shade exception is not very helpful.
Converting to a full string will contain many more details.
2016-01-19 12:17:36 -05:00