Commit Graph

205 Commits (056d56ce24728bb82fba3bfd43e1327571cd6175)

Author SHA1 Message Date
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
Alan Loi e93aec0b3a Add dynamodb_table module 2016-12-08 11:32:53 -05:00
Brian Coca c73d248ba6 monior docfixes added extensino to vsphere_copy so it actually installs 2016-12-08 11:32:52 -05:00
Amir Moulavi 4588a4f9ed Implementation of EC2 AMI copy between regions 2016-12-08 11:32:52 -05:00
Rene Moser ee2809d4f4 cloudstack: new module cs_facts 2016-12-08 11:32:52 -05:00
Dag Wieers 209ba9aed0 Spurious newline could corrupt payload
Due to a spurious newline we corrupted the payload. It depends on the order of the headers and if there were headers added by vSphere.

The Accept header was also not needed.
2016-12-08 11:32:52 -05:00
whiter cc47adbc03 New module - ec2_eni 2016-12-08 11:32:52 -05:00
Rob White 4ad6cc183a Updated documentation and added boto profile support. 2016-12-08 11:32:52 -05:00
Robert Estelle b180b97273 ec2_vpc_igw - Rename IGWException to AnsibleIGWException. 2016-12-08 11:32:52 -05:00
Robert Estelle 83d3ff2692 ec2_vpc_igw - Exit with fail_json when boto is unavailable. 2016-12-08 11:32:52 -05:00
Robert Estelle 9433c88aef Add ec2_vpc_igw module. 2016-12-08 11:32:52 -05:00
Will Thames bbc82baa58 Add GUIDELINES for AWS module development
Starting point for a reference when doing pull request reviews.
If something doesn't meet the guidelines we can point people
at them. If something is bad but is not mentioned in the
guidelines, we should add it here.
2016-12-08 11:32:52 -05:00
Siva Popuri ba389018bc Corrected the license text to match GPLv3 2016-12-08 11:32:52 -05:00
Siva Popuri 62d42f0163 Added clc ansible module for managing groups in centurylink cloud 2016-12-08 11:32:52 -05:00
Siva Popuri f50657aec0 Revert "ansible modules for centurylink cloud are added"
This reverts commit 11c953477c012435e078d62204b0cf1db2796d2f.
2016-12-08 11:32:52 -05:00
Siva Popuri a2248dd2d0 ansible modules for centurylink cloud are added 2016-12-08 11:32:52 -05:00
Brian Coca 6ababec09f minor doc update 2016-12-08 11:32:51 -05:00
Dag Wieers 9197b84236 New module to copy (push) files to a vCenter datastore 2016-12-08 11:32:51 -05:00
Kevin Carter 16cc3423a5 Fix the lxc container restart state
The lxc container restart state does not ensure that the container
is in fact started unless another config or command is passed into
the task. to fix this the module simply needs to have the function
call added ``self._container_startup()`` after the container is
put into a stopped state.

Signed-off By: Kevin Carter <kevin.carter@rackspace.com>
2016-12-08 11:32:51 -05:00
Greg DeKoenigsberg c65a612d1f Changes to author formatting, remove emails 2016-12-08 11:32:51 -05:00
Greg DeKoenigsberg 9e56cb6c0f Adding author info 2016-12-08 11:32:50 -05:00
whiter c9fb43a8e3 New module - ec2_eni_facts 2016-12-08 11:32:50 -05:00
Rene Moser a9449f951e cloudstack: fix clean_up arg to be boolean in cs_network 2016-12-08 11:32:50 -05:00
Rene Moser 614caead31 cloudstack: add new module cs_template 2016-12-08 11:32:50 -05:00
Alex Lo 6e27752cea Error message typo 2016-12-08 11:32:50 -05:00
Alex Lo 62390208e3 Fix boto library checking 2016-12-08 11:32:50 -05:00
Alex Lo 04f5a73bd1 There is no absent, only disabled 2016-12-08 11:32:50 -05:00
Alex Lo 66800925cd remove extraneous imports 2016-12-08 11:32:50 -05:00
Rene Moser ad72afbc40 cloudstack: add new module cs_network 2016-12-08 11:32:49 -05:00
Kevin Carter 92bd79de03 Updates the doc information for the python2-lxc dep
The python2-lxc library has been uploaded to pypi as such this commit
updates the requirements and doc information for the module such that
it instructs the user to install the pip package "lxc-python2" while
also noting that the package could be gotten from source as well. In
the update comments have been added to the requirements list which
notes where the package should come from,

Closes-Bug: https://github.com/ansible/ansible-modules-extras/issues/550
2016-12-08 11:32:49 -05:00
Rene Moser 4da34d198b cloudstack: remove listall in cs_project
listall in cs_project can return the wrong project for root admins, because project name are not unique in separate accounts.
2016-12-08 11:32:49 -05:00
Rene Moser 2c1df46167 cloudstack: fix project name must not be case sensitiv 2016-12-08 11:32:49 -05:00
Brian Coca 74cc1bb624 added missing options: 2016-12-08 11:32:49 -05:00
Brian Coca 6769114afd minor docs update 2016-12-08 11:32:48 -05:00
Quentin Stafford-Fraser 784b265e72 Webfaction will create a default database user when db is created. For symmetry and repeatability, delete it when db is deleted. Add missing param to documentation. 2016-12-08 11:32:48 -05:00
Quentin Stafford-Fraser 03999b457a Add GPL notices 2016-12-08 11:32:48 -05:00
Quentin Stafford-Fraser 6739578742 Add examples. 2016-12-08 11:32:48 -05:00
Quentin Stafford-Fraser 8bd3d72088 Available choices for 'state' explicitly listed. 2016-12-08 11:32:48 -05:00
Quentin Stafford-Fraser 3d1090fc66 Documentation version_added numbers are strings. 2016-12-08 11:32:48 -05:00
Quentin Stafford-Fraser 3f715dc954 Tidying of webfaction modules 2016-12-08 11:32:48 -05:00
Quentin Stafford-Fraser 00e146649f Add webfaction modules 2016-12-08 11:32:48 -05:00
Sergei Antipov 89e13e2ae8 proxmox | changed https_verify_ssl to to validate_certs and added forgotten return 2016-12-08 11:32:47 -05:00
Sergei Antipov 73cfe2f3c7 proxmox_template | deleted state=list and changed default timeout to 30 2016-12-08 11:32:47 -05:00
Sergei Antipov 9491bb138d proxmox_template | changed http_verify_ssl to validate_certs 2016-12-08 11:32:47 -05:00
Sergei Antipov 79cee59b5b proxmox_template | fixed problem with uploading 2016-12-08 11:32:47 -05:00
Sergei Antipov 3615776422 Added proxmox_template module 2016-12-08 11:32:47 -05:00
Kevin Carter c7a04c0863 lxc_container: remove BabyJSON
Removed the usage of baby json. This is in response to the fact
that the baby json functionality was removed in Ansible 1.8

Ref: https://github.com/ansible/ansible-modules-extras/issues/430
2016-12-08 11:32:46 -05:00
Rene Moser 22f1cbd21f cloudstack: add new module cs_project 2016-12-08 11:32:45 -05:00
Rene Moser 3cded7d5af cloudstack: fix doc for cs_instance, force is defaulted to false 2016-12-08 11:32:44 -05:00
Rene Moser 62eaec7191 cloudstack: fix examples in cs_iso 2016-12-08 11:32:44 -05:00
Rene Moser b30fda4906 cloudstack: add choices for api_http_method 2016-12-08 11:32:44 -05:00
Rene Moser 2ca6d151b2 cloudstack: add new param api_timeout 2016-12-08 11:32:44 -05:00
Rene Moser 218c0bce18 cloudstack: update doc of cs_portforward, fixes typos. 2016-12-08 11:32:44 -05:00
Rene Moser 7bfb24cae5 cloudstack: update doc in cs_instance 2016-12-08 11:32:44 -05:00
Rene Moser 64f9c9fc17 cloudstack: add instance_name alias internal name to returns in cs_instance 2016-12-08 11:32:44 -05:00
Rene Moser 62e062eb34 cs_instance: improve hypervisor argument and return 2016-12-08 11:32:44 -05:00
Rene Moser 30feb9d387 cloudstack: improve required params 2016-12-08 11:32:44 -05:00
Greg DeKoenigsberg b2e60b7cde Changing maintainer for this module 2016-12-08 11:32:44 -05:00
Sergei Antipov 1e70526186 Added examples 2016-12-08 11:32:43 -05:00
Rene Moser bdab9a86d5 proxmox: prevent to log passwords 2016-12-08 11:32:43 -05:00
Rene Moser 7fee01bb0e proxmox: update module doc 2016-12-08 11:32:43 -05:00
Toshio Kuratomi c9f08eca86 Add version_added dodmentation 2016-12-08 11:32:42 -05:00
Sergei Antipov f517de938c Deleted debugging 2016-12-08 11:32:42 -05:00
Sergei Antipov 56918df8a4 Added documentation 2016-12-08 11:32:42 -05:00
Sergei Antipov cfd61d391a Added conditionals, umount, forceStop, timeout, etc 2016-12-08 11:32:42 -05:00
Sergei Antipov a121420d99 Initial commit of Proxmox module 2016-12-08 11:32:42 -05:00
Brian Coca a7b46316c1 removed executable bit 2016-12-08 11:32:42 -05:00
Rene Moser e26d21648a cloudstack: fix public and private ports results not int 2016-12-08 11:32:41 -05:00
Rene Moser 2c7542e333 cloudstack: cs_firewall: add egress support
Added functionality to set rules for egress using this module at these are very similar. The only real difference is that egress firewall API uses the networkid. That is why the new arguments `type` for choosing `egress` or `ingress` and `network` was added.

For `type=ingress`, which is the default, `ip_address` is required and for `type=egress` the argument `network` is required.
2016-12-08 11:32:41 -05:00
Rick Mendes 2f4edb29d4 house cleaning based on code review 2016-12-08 11:32:41 -05:00
Rick Mendes 33489ba415 ec2_win_password module for windows ec2 instances 2016-12-08 11:32:41 -05:00
Rene Moser 100ec875d1 cloudstack: cs_iso code style and cleanup 2016-12-08 11:32:40 -05:00
Rene Moser 3cb9e95290 cloudstack: cs_iso: add account and domain 2016-12-08 11:32:40 -05:00
Rene Moser 6d1873f330 cloudstack: add catch all exceptions and show a user friendly message
Also see GH-493.
2016-12-08 11:32:40 -05:00
Rene Moser e03827b490 cloudstack: replace old _id() with new generic style from utils 2016-12-08 11:32:40 -05:00
Rene Moser 9ff63f2338 cloudstack: remove self.result, is defined in super class from utils 2016-12-08 11:32:40 -05:00
Rene Moser 997ad728ea cloudstack: cs_affinitygroup: add domain and account support 2016-12-08 11:32:40 -05:00
Rene Moser 10379e19c4 cloudstack: avoid logging of secrets 2016-12-08 11:32:40 -05:00
Toshio Kuratomi 4f07e8b256 Many more doc fixes 2016-12-08 11:32:40 -05:00
Brian Coca d344a3fde3 more string corrections 2016-12-08 11:32:39 -05:00
Brian Coca c4f52f62f7 fix doc parsing by correctly quoting author 2016-12-08 11:32:39 -05:00
Brian Coca 6f28497f8c more minor docfixes 2016-12-08 11:32:39 -05:00
Kevin Carter 7a22f84ca4 Updated lxc module to remove the clone state
The clone state was removed in favor of making the module more
declarative. This change was done in response to review in PR #328
from @bcoca.

In the commit new examples were created on how this feature works.
2016-12-08 11:32:39 -05:00
Greg DeKoenigsberg 4e5e63ca02 Update virt.py 2016-12-08 11:32:38 -05:00
Greg DeKoenigsberg 16c6cff529 Update cs_securitygroup.py 2016-12-08 11:32:38 -05:00
Greg DeKoenigsberg 4c2295577a Update cs_instance.py 2016-12-08 11:32:38 -05:00
Kevin Carter 581877f242 Added overlayfs backend type to the lxc_container module
This commit adds the overlayfs type to the lxc_container module. In
Adding the overlayfs type the commit adds the ability to clone a
container. While cloning is not locked down to only the overlayfs
container backend it is of particular interest when using the overlayfs
backend as it provides for amazingly fast snapshots.

Changes to the resource types and documentation have been added on how
the new backend type can be used along with the clone operation.

This PR addresses a question asked on the original merged pull request
for overlayfs support which came from @fghaas on PR
"https://github.com/ansible/ansible-modules-extras/pull/123".

The overlayfs archive function is a first class function and will
allow for the containers to be backed-up using all methods which
brings support up to that of all other storage backends.
2016-12-08 11:32:38 -05:00