Commit Graph

2174 Commits (dcf4d7e6e5d86c518df5f91cc236b23b30fcdac0)

Author SHA1 Message Date
Hiroaki Nakamura f72b0288c0 Fix RETURN document to be a valid yaml 9 years ago
Hiroaki Nakamura 5e10ca5c3d Add __init__.py to cloud/lxd 9 years ago
Hiroaki Nakamura 76f4a1c5d8 Add lxd_container module 9 years ago
nitzmahone 709114d55f fix ec2_vpc_vgw exception handling issues 9 years ago
James Cammarata d5a3f5ec5f Merge pull request #1709 from naslanidis/new_aws_module_ec2_vpc_vgw
New aws module for ec2 vpc virtual gateways
9 years ago
Stefan Horning 1da89cd5a1 Get EIP association information for ENI if EIP is associated (#2082) 9 years ago
René Moser 0daedc05f5 cloudstack: cs_volume: fix volume may be NoneType in check_mode (#2455) 9 years ago
Javier M. Mellid 2c1530b647 Imports should be near the top of the file
Prior to 2.1, imports of module_utils was actually a preprocessor-like
substitution. So importing at the bottom helped preserve line numbers when
debugging. We'll be moving these to the top of files as time goes on.

Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
9 years ago
Javier M. Mellid 78b4829623 Adapt exception syntax to work under python3 in s3_bucket.py
Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
9 years ago
Javier M. Mellid a87b2e38a0 Add Ceph RGW S3 compatibility
Ceph Object Gateway (Ceph RGW) is an object storage interface built on top of
librados to provide applications with a RESTful gateway to Ceph Storage
Clusters:

http://docs.ceph.com/docs/master/radosgw/

This patch adds the required bits to handle buckets with the RGW S3 RESTful API
properly.

It sticks to the AWS behaviour where possible while avoiding not yet
implemented features in the Ceph RGW API.

Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
9 years ago
Baptiste Mille-Mathias 6cb6829384 Implement mounts in proxmox module (#2426)
* Implement mounts in proxmox module

mounts in proxmox are the additionnal disk devices set in a guests.
We handle the mounts the same way that netif devices, using a
dictionnary with keys being mp0, mp1,…

* Add version_added

Seems to be a requirement but I didn't see that anywhere.
Hope it'll fix the travis-ci issue
9 years ago
Rob 65fe9eb2b0 Add boto3 support to ec2_eni_facts (#2425) 9 years ago
Bede Carroll 1e405bb472 Add vMotion Module (#2342) 9 years ago
Constantin 062c7607a4 Added block_device_mapping in the returned output (#1553) 9 years ago
René Moser e596ad9294 Merge pull request #2388 from resmo/for-ansible-2.2
[2.2] cloudstack related changes for Ansible 2.2
9 years ago
sxpert a82e991453 Virt net mods batch 1 (#1686)
* add a new modify command

for now, allows adding or modifying hosts in the dhcp subsystem

* fix some pep8 things that escaped

* add modify in the list in the doc

* added mention of adding modify in version 2.1

* handle the test mode case for modify

* modify the code for finer check mode support
9 years ago
Rene Moser 206cfb3125 cloudstack: move duplicate common code to utils 9 years ago
Rene Moser 00fe782722 cloudstack: cs_staticnat: fix static nat was always changed (disabled/enabled)
Fixes firewall rules get lost after use of cs_staticnat.
9 years ago
Rene Moser aef2da2401 cloudstack: use has_changed() from utils 9 years ago
Rene Moser 8a235e4e53 cloudstack: use poll_job() from utils 9 years ago
Rene Moser c693be53f5 cloudstack: cs_cluster: overhaul code style 9 years ago
Rene Moser a3f57a8cf4 cloudstack: cs_affinitygroup: overhaul code style 9 years ago
Rene Moser 122beec048 cloudstack: cs_account: overhaul code style 9 years ago
Rene Moser efcfe21732 cloudstack: remove duplicate import cs handling, already in utils. 9 years ago
Rene Moser ff29da944e cloudstack: cs_project: fix state=active/suspended does not create/update project 9 years ago
Rob 0e9a820628 Use helper function for new module and rename (#2277) 9 years ago
Alex Lee 9391103f01 correcting spelling mistake 9 years ago
Alex Lee 62d7ded9ba adding public ip address 9 years ago
David Shrewsbury 1f1e15ae00 Merge pull request #1784 from SamYaple/devel
Create OpenStack identity services module
9 years ago
Rene Moser 6fd21ae67c cloudstack: cs_project: add tag support 9 years ago
nitzmahone 6ee1cfc5cf remove duplicate deployment_mode docstring
submodule ref wasn't updated, so missed that this had recently been added
9 years ago
SamYaple 9bbcc09a14 Create OpenStack identity services module
New module using shade to create and manage OpenStack identity
services
9 years ago
nitzmahone a0bd87f04e various fixes to azure_rm_deployment
bugfix for lost results on incomplete poll (sub-optimal, but works)
add docs for undocumented module args (will temporarily break module validator)
9 years ago
Laurent Mazuel 4b4a8025e1 Adapt Code to Azure SDK 2.0.0RC4 (#2319) 9 years ago
René Moser 46df503964 cloudstack: cs_snapshot_policy: remove unused arg specs and doc cleanup (#2361) 9 years ago
Nicolas Boutet 473e5d7969 Fix typo in documentation (#2359) 9 years ago
trondhindenes 3d6da37864 azure_rm_deploy docfix (#2354) 9 years ago
Stefan Horning 8e20fcfafe Streamlined ec2_elb_facts module return values with naming in ec2_elb… (#2081)
* Streamlined ec2_elb_facts module return values with naming in ec2_elb_lb (hosted zones)

* Keep the old return values for hosted zone to keep backwards compatibility
9 years ago
René Moser 57e1497fcf cloudstack: cs_ip_address: add vpc support (#2283)
* cloudstack: cs_ip_address: add vpc support

* cloudstack: cs_ip_address: remove unused/unreachable code
9 years ago
René Moser abe406f074 cloudstack: cs_staticnat: add vpc support (#2285)
* cloudstack: cs_staticnat: add network arg, used for VPC support

* cloudstack: cs_staticnat: removed unused code
9 years ago
René Moser 039005bfaa cloudstack: cs_firewall: get_network moved to utils, cleanup (#2293) 9 years ago
René Moser 5a7a9a0a30 cloudstack: cs_template: fix typos (#2294) 9 years ago
René Moser 53ffd5f82b cloudstack: new module cs_snapshot_policy (#2303) 9 years ago
Toshio Kuratomi 5b2bf6f08a Fix python3 syntax compilation 9 years ago
Mike Mochan 698d2a55c5 update remote tags if changed 9 years ago
Mike Mochan cab7437e32 added tagging for the remote account 9 years ago
Mike Mochan 9a303f1628 Updates to version and requirements 9 years ago
Mike Mochan 2934495efc Added tagging functionality 9 years ago
Mike Mochan a58a12fc1f All calls to describe_vpc_peering_connections need to use the params dict 9 years ago
Mike Mochan 8ab4963e78 Remove unused vars and pass params dict to describe_peering_connections 9 years ago
Mike Mochan 2291fc00d2 update to capture peer status 9 years ago
Mike Mochan 2392395a47 removed obsolete ec2 resource object 9 years ago
Mike Mochan 10ce4d8b88 refactored to use dict invocation for calling client peerings functions 9 years ago
Mike Mochan f6c7bdf9c5 updates to Documentation - Removed refs to Boto, added params dict() and removed obsolete if statements 9 years ago
Mike Mochan 34ae687ae3 cloud/amazon/ec2_vpc_peer.py 9 years ago
Mike Mochan f84af48733 removed debug package 9 years ago
Mike Mochan 92dea03181 Version added, GPLv3 License header added 9 years ago
Mike Mochan 400484f69f Initial commit for cross account VPC peering module 9 years ago
Toshio Kuratomi 342af8b249 Add __init__.py and update version_added to fix module for ansible-validate checks 9 years ago
Fernando José Pando 0d8eefe197 fixup sns topic subscriptions (#2232)
* fixup sns topic subscriptions

* return docs
9 years ago
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
9 years ago
Ryan Sydnor 0ba34435cf Add encryption capability to AMI copy (#1409) 9 years ago
Brian Coca eb6ba749c2 added return docs 9 years ago
Adam Števko 0d54d1ffe4 Add module for retrieving SmartOS image facts (#1276) 9 years ago
Rob b9ab1f9f5c Add section on how to return boto3 CamelCased results (#2279) 9 years ago
Mariano Lasala 3d54bdd4e1 Update sl_vm.py (#2267)
There was a mistype in DATACENTER list with 'lon2', changed to 'lon02'.
9 years ago
René Moser cdffb36642 softlayer: fix module name in doc (#2266) 9 years ago
Rob 8fb8ec2e98 Add idempotence to ec2_eni when private_ip_address is supplied (#2172) 9 years ago
Victor Costan 76dee3d872 Add sts_session_token module for short-lived AWS credentials. (#1988) 9 years ago
Victor Costan 010286aafd Add aws_mfa_devices module for multi-factor authentication on AWS. (#1987) 9 years ago
Toshio Kuratomi 2a5812a0e8 Move the import of get_exception to pycompat24 9 years ago
kubilus1 b742ab1263 Check to see existence of same named/location system before creation. (#2150) 9 years ago
Toshio Kuratomi 8ecc3d2516 Port vspherer_copy to pass syntax checks on python3 9 years ago
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.
9 years ago
Michael Scherer c8864c3220 Use a python3 compatible notation for octal (#2238) 9 years ago
Adrian Likins 028ef0a2fa Merge pull request #2185 from resmo/feature/cs_router
cloudstack: new module cs_router
9 years ago
Constantin 8c1b672929 Added support for Standard - Infrequent Access stoarage class (#2134) 9 years ago
Rob 9677961b8c Added better example for boto3 exception handling (#2204) 9 years ago
Michael Baydoun 2665acb257 created ec2_customer_gateway module (#1868) 9 years ago
Ash Berlin d00d0d0846 Add missing urlparse import to s3_bucket (#2110)
This was triggered when S3_URL environment variable was set.
9 years ago
René Moser eab4b6a3e9 cs_loadbalancer_rule_member: doc fixes (#2184) 9 years ago
Nik LaBelle bb965eebee change netif type to dict and update example (#2187) 9 years ago
Rene Moser 5e008b928e
cloudstack: new module cs_router 9 years ago
Matt Martz a4b631522d Merge pull request #2179 from sivel/ansible-testing-exclusions
Ansible testing exclusions
9 years ago
Nick Aslanidis 8be42e0676 corrected version to 2.2. Ensure no vpc-id is returned if detached 9 years ago
Matt Martz 081845b353 Fix HAS_BOTO fail_json call for ec2_ami_copy 9 years ago
Rob 959bbfbf53 Add secondary IP support and allow specifying sec groups by name (#2161) 9 years ago
Lakshmi Balu cfc6d1cf62 Update vmware_datacenter.py (#2164)
Fixed the syntac issue variable references before definiton
9 years ago
René Moser 46fb2f8d14 cs_template: fix missing docs (#2165) 9 years ago
Rob 47fddc83be Added doc for new get_ec2_security_group_ids_from_names function in m… 9 years ago
Toshio Kuratomi 675d778b50 Fix documentation 9 years ago
krzwalko 12f1c85aa3 Fix datacenter_name and cluster_name module params (#2142) 9 years ago
Brad Davidson ea8547c86a Fix argument spec for type and tags; return VGW info instead of raw response 9 years ago
Rene Moser 94e6c32608 azure_rm_deployment: fix docs and move import utils near main()
fixes build
9 years ago
Chris Houseknecht ca310f3d15 Merge pull request #2106 from chouseknecht/azure_rm_deployment
Rename azure_deploy to azure_rm_deployment. Refactor to use azure_com…
9 years ago
chouseknecht a1cc951d6f Updated per PR comments 9 years ago
Michael Scherer 95018b5fe8 Add partial doc on return value of virt (#2116) 9 years ago
Brian Coca 470460acfc promoted to core, including fixes 9 years ago
James Cammarata 59821bbc30 Removing docker_login as it's now in core 9 years ago
chouseknecht 99f5e394ad
Rename azure_deploy to azure_rm_deployment. Refactor to use azure_common. 9 years ago
Joshua Gilman e4a4259bc2 Change disk type to str to allow correct usage of rootfs for LXC (#2091) 9 years ago
Adrià Galín Figueras 014297b868 Fixed netif params when create lxc container (#2064) 9 years ago
Rene Moser de22b721db vmware_vm_shell: doc: add missing defaults 9 years ago
Ritesh Khadgaray e24c3b93fe vmware_vm_shell: speed up vm_name search (#1909) 9 years ago
Toshio Kuratomi 54a6a470b5 Make main() only run when invoked as a script (style cleanup) 9 years ago
Chris Houseknecht 451420b7e8 Merge pull request #1839 from lmazuel/feature/azure-deploy
Feature/azure deploy
9 years ago
Rob c3d8b07432 New module - ec2_snapshot_facts (#1088) 9 years ago
Victor Costan 1aecfc1e19 amazon/GUIDELINES.md: Fix copy-paste typo (#2060) 9 years ago
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
9 years ago
Karim Boumedhel a61742e070 Add cloudinit support to ovirt.py module 9 years ago
Michael Scherer 8e7051ad9d Do not leak password by error for ovirt module (#1991) 9 years ago
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
9 years ago
Michael Scherer bd0deed367 Use type=path for pem_file, since that's a file (#1934) 9 years ago
René Moser 7c613c314c Merge pull request #1997 from evgeni/lxc-container_config-fixes
Lxc container config fixes
9 years ago
David Shrewsbury e7e440e349 Merge pull request #1967 from rcarrillocruz/os_project_facts
Add os_project_facts module
9 years ago
Jens Carl 10def11d39 Fix code example (#2018) 9 years ago
Ricardo Carrillo Cruz c65bc5f43d Add os_project_facts module
This module gathers facts about OpenStack projects
9 years ago
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.
9 years ago
René Moser 30a46ee542 cloudstack: cs_instance: fix template not found (#2005)
Let users decide which filter should be used to find the template.
9 years ago
René Moser 442c286b1c Merge pull request #1923 from resmo/fix/cs-template-absent-cross-zones
cloudstack: cs_template: bug fixes
9 years ago
David Shrewsbury 3c9310d608 New OpenStack module os_port_facts (#1986) 9 years ago
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
9 years ago
Evgeni Golov 98514ace6e do not set LXC default config
this was accidentally re-introduced in 7120fb4b

Signed-off-by: Evgeni Golov <evgeni@golov.de>
9 years ago
David Shrewsbury fa4769f708 Merge pull request #1970 from rcarrillocruz/os_user_facts
Add os_user_facts module
9 years ago
David Shrewsbury 22720d649c Merge pull request #1969 from rcarrillocruz/os_domain_facts
Add os_keystone_domain_facts module
9 years ago
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
9 years ago
Rene Moser 0b9c8213ad cloudstack: fix doc, display_text not required 9 years ago
Rene Moser 2d78c23dc0 cloudstack: cs_template: fix cross_zones template removal 9 years ago
René Moser 31de43d306 Merge pull request #1952 from mscherer/fix_cloudstack
Do not leak passwords in case of error in cloudstack modules
9 years ago
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>
9 years ago
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>
9 years ago
Ricardo Carrillo Cruz 34045fddb1 Add os_user_facts module
This module gather facts about one or more OpenStack users
9 years ago
Ricardo Carrillo Cruz d914b3fa84 Add os_keystone_domain_facts module
This module gathers one or more OpenStack domains facts
9 years ago
Michael Scherer 7120fb4b01 Properly label path argument with type='path' (#1940) 9 years ago
Rob 84f2aa6167 Updated Amazon module guidelines regarding boto3
* Updated Amazon module guidelines regarding boto3

* Spelling correction
9 years ago
Andy Baker 204b4bab56 type should be 'list' not the default of 'string' 9 years ago
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>
9 years ago
Michael Scherer 5696e6c33a Do not leak passwords in case of error in cloudstack modules 9 years ago
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
9 years ago
René Moser fb3d584abd Merge pull request #1933 from evgeni/no-lxc-default.conf
do not set a default config for lxc containers
9 years ago
Evgeni Golov 185bcbd8f7 explicitly set "default: null" in the docs 9 years ago
Chris Porter da84e2e9b8 fix security vulnerability in lxc module
octal/decimal confusion makes file world-writable before executing it
9 years ago
John Barker 950e2d9484 restore version_added in dynamodb_table.py 9 years ago
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>
9 years ago
Rene Moser 25d7126852 openstack: doc: add return doc, fixes build 9 years ago
David Shrewsbury 6bcd3d624b Add OpenStack os_user_role module 9 years ago
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.
9 years ago
Brian Coca 745df06abc renamed sl to sl_vm and updated docs
namespace for softlayer modules should now be sl_
9 years ago
Brian Coca b228bfb575 Merge pull request #1020 from mcltn/devel
Added module for SoftLayer
9 years ago
David Shrewsbury 7bebfea77b Merge pull request #1681 from juliakreger/feature/os-ironic-inspect
Add os_ironic_inspect module
9 years ago