Commit Graph

191 Commits (752a24caa7a2f6b69335d9508a1a2ec754f89e9a)

Author SHA1 Message Date
Boris Ekelchik 1b56c446b8 Added changes requested by reviewers
Copied @wimnat incorporating changes requested in feedback comments
2016-12-08 11:33:00 -05:00
Boris Ekelchik 7d562272a4 New sts_assume_role module 2016-12-08 11:32:59 -05:00
Rene Moser 7806d3d134 cloudstack: cs_instance: fix missing resource error in check mode if instance is not yet present 2016-12-08 11:32:59 -05:00
Toshio Kuratomi 36429c7b9b Fix the documentation of route53_zone 2016-12-08 11:32:58 -05:00
Christopher Troup 5f57ffcbba Add GPL file header 2016-12-08 11:32:58 -05:00
Christopher Troup af8c363932 Use state: present|absent rather than command: create|delete 2016-12-08 11:32:58 -05:00
Christopher Troup beceeb440d Update documentation to include usual fields
- Adds version_added
- Adds author
- Removed default: null from a required field
2016-12-08 11:32:58 -05:00
Christopher Troup a6e79f6347 Add support for creating and deleting Route53 hosted zones
Supports both private (per-VPC) and public hosted zones.
2016-12-08 11:32:58 -05:00
Ash Wilson c10f898b53 Use rax_to_dict(). 2016-12-08 11:32:57 -05:00
Ash Wilson 9928efedc9 Bring the examples up to date. 2016-12-08 11:32:57 -05:00
Ash Wilson b76dff4411 Guard calls that modify the CLB with try/except. 2016-12-08 11:32:57 -05:00
Ash Wilson f97c3cb8b6 Include the balancer acted upon in the result. 2016-12-08 11:32:57 -05:00
Ash Wilson e7d31217f1 Bump version_added. 2016-12-08 11:32:57 -05:00
Ash Wilson 6eda375684 Use rax_find_loadbalancer utility method. 2016-12-08 11:32:57 -05:00
Ash Wilson 0177ba903a Remove redundant "state" validity check. 2016-12-08 11:32:57 -05:00
Ash Wilson 9dfba4881f Rename "balancer_name" to "loadbalancer." 2016-12-08 11:32:57 -05:00
Ash Wilson 575ace06b9 Move ansible imports to the module's bottom. 2016-12-08 11:32:57 -05:00
Ash Wilson 7bf7f23b3e Use the correct version_added. 2016-12-08 11:32:57 -05:00
Ash Wilson 05cee6a120 Initial implementation of rax_clb_ssl. 2016-12-08 11:32:57 -05:00
Quentin Stafford-Fraser e57a771860 webfaction: Allow machine to be specified if account has more than one. 2016-12-08 11:32:57 -05:00
Rene Moser 24b0943eaa cloudstack: fix user_data gathering, must not be in for loop 2016-12-08 11:32:56 -05:00
Rene Moser 1aa4d0c2dd cloudstack: update code to match best practice
* Remove catchall exception
* use `if __name__ == '__main__':`
2016-12-08 11:32:56 -05:00
Rene Moser 4020ebaecf cloudstack: fix state=expunged in cs_instance 2016-12-08 11:32:56 -05:00
Rene Moser cbfc5a3079 cloudstack: cs_instance do not pass zoneid to listVirtualMachines
This change is related to 2 issues;

- The API does not return destroyed VMs if zone ID is passed for CS version < 4.5.2. Also see CLOUDSTACK-8578. This only affects domain and root admins.
- The instance name must be unique across all zones. If we pass the zone ID to find  a VM, it will not be found if it is in a different zone but a deployment with the name would fail.
2016-12-08 11:32:56 -05:00
Rene Moser 6fd10bed8f cloudstack: cleanup cs_instance use param key exlicitly for utils methods 2016-12-08 11:32:56 -05:00
Rene Moser da3db1bfda cloudstack: fix cs_instance can not find iso and disk offering if domain is set.
This does only affect root admins.
2016-12-08 11:32:56 -05:00
Matt Martz 45e9216fc4 Fix interpreter line in webfaction modules 2016-12-08 11:32:56 -05:00
Matt Martz bfa9852fc7 Update vsphere_copy.py to use new style module_utils import 2016-12-08 11:32:56 -05:00
Dag Wieers ab7a8a6a11 Work around a software bug in vSphere
Due to a software bug in vSphere, it fails to handle ampersand in datacenter names.
The solution is to do what vSphere does (when browsing) and double-encode ampersands.

It is likely other characters need special treatment like this as well, haven't found any.
2016-12-08 11:32:56 -05:00
Rick Mendes c89e05892a upgraded docs and argspec to match module guidelines 2016-12-08 11:32:56 -05:00
Rick Mendes 1286364498 optionally supports waiting for the password to be available 2016-12-08 11:32:55 -05:00
Rick Mendes 110388be11 added version_added to key_passphrase 2016-12-08 11:32:55 -05:00
Rick Mendes cced189390 now handles keys protected with a passphrase 2016-12-08 11:32:55 -05:00
Alan Loi dbbeee34a0 Check AWS region and credentials are provided. 2016-12-08 11:32:55 -05:00
Alan Loi a7732e23dd Docfixes - add version_added and default values. 2016-12-08 11:32:55 -05:00
Rene Moser 03a6fc0c56 cloudstack: fix cs_instance hypervisor must be omitted if set on template/iso
Fix related to issue reported in PR GH-646
2016-12-08 11:32:54 -05:00
Rene Moser b1143abbcf cloudstack: make get_template_or_iso returning a dict for fix GH-646 2016-12-08 11:32:54 -05:00
Toshio Kuratomi 4078e0905c Fix up docs 2016-12-08 11:32:54 -05:00
Matt Martz d93da276ad Bump version_added to 2.0 2016-12-08 11:32:54 -05:00
Matt Martz 66ce556e92 Add missing __init__.py 2016-12-08 11:32:54 -05:00
Ash Wilson 23c79ed474 Eliminate redundant module argument checks. 2016-12-08 11:32:54 -05:00
Ash Wilson 6b753c5c71 Use required=True and choices=[]. 2016-12-08 11:32:54 -05:00
Ash Wilson 4b1bdf738e Correct version_added in the documentation. 2016-12-08 11:32:54 -05:00
Ash Wilson eac1565b22 Restore rax_mon_* modules. 2016-12-08 11:32:54 -05:00
jpic 4afb6b73c8 Define HAS_LXC even if import lxc doesn't fail.
This fixes::

    Traceback (most recent call last):
      File "/home/jpic/.ansible/tmp/ansible-tmp-1435080800.61-38257321141340/lxc_container", line 3353, in <module>
        main()
      File "/home/jpic/.ansible/tmp/ansible-tmp-1435080800.61-38257321141340/lxc_container", line 1712, in main
        if not HAS_LXC:
    NameError: global name 'HAS_LXC' is not defined
2016-12-08 11:32:54 -05:00
jpic 44d97d33e5 Fixed lxc option parsing.
This fixes::

    Traceback (most recent call last):
      File "/home/jpic/.ansible/tmp/ansible-tmp-1435080916.98-133068627776311/lxc_container", line 3355, in <module>
        main()
      File "/home/jpic/.ansible/tmp/ansible-tmp-1435080916.98-133068627776311/lxc_container", line 1724, in main
        lxc_manage.run()
      File "/home/jpic/.ansible/tmp/ansible-tmp-1435080916.98-133068627776311/lxc_container", line 1605, in run
        action()
      File "/home/jpic/.ansible/tmp/ansible-tmp-1435080916.98-133068627776311/lxc_container", line 1145, in _started
        self._config()
      File "/home/jpic/.ansible/tmp/ansible-tmp-1435080916.98-133068627776311/lxc_container", line 714, in _config
        _, _value = option_line.split('=')
    ValueError: too many values to unpack

With such a task::

    tasks:
    - lxc_container:
        name: buildbot-master
        container_config:
        - "lxc.mount.entry = {{ cwd }} srv/peopletest none defaults,bind,uid=0,create=dir 0 0"
2016-12-08 11:32:53 -05:00
Alan Loi e05ade9806 Fix aws connection to use params. 2016-12-08 11:32:53 -05:00
Alan Loi a6b6cfe2dd Add .py file extension to dynamodb_table module. 2016-12-08 11:32:53 -05:00
Alan Loi abf03f6376 Added return value documentation to dynamodb_table module. 2016-12-08 11:32:53 -05:00
Alan Loi 1bea9a25bb Added check_mode support to dynamodb_table module. 2016-12-08 11:32:53 -05:00