Commit graph

2068 commits

Author SHA1 Message Date
Mike Mochan
92dea03181 Version added, GPLv3 License header added 2016-05-25 11:46:31 -07:00
Mike Mochan
400484f69f Initial commit for cross account VPC peering module 2016-05-25 11:46:30 -07:00
Toshio Kuratomi
342af8b249 Add __init__.py and update version_added to fix module for ansible-validate checks 2016-05-23 13:06:14 -07:00
Fernando José Pando
0d8eefe197 fixup sns topic subscriptions (#2232)
* fixup sns topic subscriptions

* return docs
2016-05-23 11:39:20 -04:00
Mike Mochan
6d52d84af7 New AWS module for managing VPC Network ACLs (#1502)
* New AWS module for managing VPC Networks ACLs

Moved return  outside of try block

botocore.exceptions to support python 2.5

For some reason Travis is using Python V2.4 to run the tests - My code is valid

duplicate file

* Fixed NameError Exception- module not being passed when calling some boto3 client methods

* Fixes a bug reported by @dennisconrad, where the nacl is not created when subnets list is empty

* nacl property changed to name and fixes a bug where nacl is not deleted when subnets list is empty

* Updates to version and requirements

* Fix 'vpc' param to 'vpc_id' to match documentation and convention
2016-05-23 10:42:11 -04:00
Ryan Sydnor
0ba34435cf Add encryption capability to AMI copy (#1409) 2016-05-23 10:39:02 -04:00
Brian Coca
eb6ba749c2 added return docs 2016-05-23 10:36:47 -04:00
Adam Števko
0d54d1ffe4 Add module for retrieving SmartOS image facts (#1276) 2016-05-23 10:35:55 -04:00
Rob
b9ab1f9f5c Add section on how to return boto3 CamelCased results (#2279) 2016-05-23 10:31:41 -04:00
Mariano Lasala
3d54bdd4e1 Update sl_vm.py (#2267)
There was a mistype in DATACENTER list with 'lon2', changed to 'lon02'.
2016-05-21 00:39:17 +02:00
René Moser
cdffb36642 softlayer: fix module name in doc (#2266) 2016-05-21 00:38:48 +02:00
Rob
8fb8ec2e98 Add idempotence to ec2_eni when private_ip_address is supplied (#2172) 2016-05-19 07:55:54 +02:00
Victor Costan
76dee3d872 Add sts_session_token module for short-lived AWS credentials. (#1988) 2016-05-18 11:13:49 -07:00
Victor Costan
010286aafd Add aws_mfa_devices module for multi-factor authentication on AWS. (#1987) 2016-05-18 11:10:52 -07:00
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