Commit Graph

151 Commits (5464b7156120e9be898e31336bf59b021a64d25f)

Author SHA1 Message Date
Rene Moser b9cf174a8b cloudstack: cs_network: rename broadcast_domaintype to broadcast_domain_type for consistency 2016-12-08 11:33:11 -05:00
Rene Moser 368b553fd7 cloudstack: cs_security_group_rule: fix typo 2016-12-08 11:33:11 -05:00
Rene Moser 26652002a4 cloudstack: add Simulator as hypervisor 2016-12-08 11:33:11 -05:00
Rene Moser 7bcbc7819c cloudstack: rename displaytext, displayname to dislplay_... for consistency 2016-12-08 11:33:11 -05:00
Rene Moser 65dc7af166 cloudstack: use new get_result() handling 2016-12-08 11:33:11 -05:00
Rene Moser 41315b2cd9 cloudstack: cs_template: fix state=absent must not need vm, url
only for state=present, fixes example.
2016-12-08 11:33:11 -05:00
Brian Coca b0e86d3551 fixes to prevent doc brekage 2016-12-08 11:33:09 -05:00
Rene Moser cbaa353a87 cloudstack: cs_ip_address: doc style fixes 2016-12-08 11:33:09 -05:00
Rene Moser 88488c26ef cloudstack: cs_instance: use mutually_exlusive of AnsibleModule 2016-12-08 11:33:09 -05:00
Rene Moser f4f20c7c20 cloudstack: sync cs_facts with best practices 2016-12-08 11:33:09 -05:00
Rene Moser 728f9fd9fa cloudstack: cs_network fix zone not in result 2016-12-08 11:33:09 -05:00
Darren Worrall ab7af801c1 Add alias 2016-12-08 11:33:09 -05:00
Darren Worrall d115960e03 Api tidy up 2016-12-08 11:33:09 -05:00
Darren Worrall eb27460d67 Rename param to ip_to_networks 2016-12-08 11:33:09 -05:00
Darren Worrall 0e1b2e5b3a Add iptonetwork parameter 2016-12-08 11:33:09 -05:00
Milamber 1760c6c670 Add an option to allow the resize of root disk when the instance is created. (need CloudStack 4.4 or +, cloud-initramfs-growroot installed on the template)
Signed-off-by: Milamber <milamber@apache.org>
2016-12-08 11:33:09 -05:00
Darren Worrall ffbc9d888f Remove listall 2016-12-08 11:33:09 -05:00
Darren Worrall b937f9a79c Param fixes to associateIpAddress 2016-12-08 11:33:09 -05:00
Darren Worrall e92acede5b Doc updates 2016-12-08 11:33:08 -05:00
Darren Worrall 6daa6f797c Fix imports, override get_network and get_ip_address 2016-12-08 11:33:08 -05:00
Darren Worrall 1c052c6f0e More relevant example 2016-12-08 11:33:08 -05:00
Darren Worrall 3a1720d6f0 Add cs_ip_address module 2016-12-08 11:33:08 -05:00
Rene Moser 371e67d885 cloudstack: doc fixes 2016-12-08 11:33:08 -05:00
Rene Moser ab00c9aacc cloudstack: fix KeyError: 'public_ip' in cs_instance 2016-12-08 11:33:08 -05:00
Rene Moser 70762b0290 cloudstack: new module cs_domain 2016-12-08 11:33:07 -05:00
Rene Moser 81006ab9c3 cloudstack: fix typos in doc 2016-12-08 11:33:04 -05:00
Rene Moser 8492f7e05c cloudstack: new module cs_staticnat 2016-12-08 11:33:01 -05:00
Rene Moser 15b6ae8e5c cloudstack: cs_instance: fix display_name not used in deployment 2016-12-08 11:33:01 -05:00
Rene Moser 1f25377ce9 cloudstack: use get_or_fallback() from cloudstack utils 2016-12-08 11:33:01 -05:00
Rene Moser 743ed1cd82 cloudstack: cs_portforward: fix public_end_port was used for private_end_port 2016-12-08 11:33:01 -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
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
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
Rene Moser ee2809d4f4 cloudstack: new module cs_facts 2016-12-08 11:32:52 -05:00
Greg DeKoenigsberg c65a612d1f Changes to author formatting, remove emails 2016-12-08 11:32:51 -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
Rene Moser ad72afbc40 cloudstack: add new module cs_network 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
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
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
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
Brian Coca c4f52f62f7 fix doc parsing by correctly quoting author 2016-12-08 11:32:39 -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
Rene Moser ecbed16300 cloudstack: cs_securitygroup_rule: minor cleanup, DRY 2016-12-08 11:32:37 -05:00
Rene Moser bbafb7ff45 cloudstack: cs_securitygroup_rule: fix result was not always what expected 2016-12-08 11:32:37 -05:00
Rene Moser b4fb1fda86 cloudstack: cs_securitygroup_rule: type -> sg_type 2016-12-08 11:32:37 -05:00
Rene Moser 0127628408 cloudstack: cs_firewall: add results 2016-12-08 11:32:37 -05:00
Rene Moser 3dfb068bfd cloudstack: cs_firewall: add account and domain 2016-12-08 11:32:37 -05:00
Rene Moser f029d9dda7 cloudstack: add alias `port` in cs_firewall 2016-12-08 11:32:37 -05:00
Rene Moser 4d210048ee cloudstack: cs_instance: add domain and account 2016-12-08 11:32:37 -05:00
Rene Moser 67f954e35e cloudstack: cs_vmshapshot: add account and domain 2016-12-08 11:32:37 -05:00
Rene Moser 27753e54c2 cloudstack: cs_sshkeypair: add account and domain support 2016-12-08 11:32:37 -05:00
Rene Moser b8e5d81099 cloudstack: new cs_portforward module 2016-12-08 11:32:37 -05:00
Rene Moser ef277ddf0b cloudstack: add new module cs_account 2016-12-08 11:32:36 -05:00
Rene Moser d73aa9d428 cloudstack: new module cs_instancegroup 2016-12-08 11:32:36 -05:00
Rene Moser 36c74c5798 cloudstack: fix missing doc fragment in cs_securitygroup_rule 2016-12-08 11:32:35 -05:00
Rene Moser 89704a7e38 cloudstack: fix missing doc fragments 2016-12-08 11:32:35 -05:00
Rene Moser fdac186d85 cloudstack: fix misssing doc about vm param 2016-12-08 11:32:35 -05:00
Rene Moser b9b0c5c006 cloudstack: fix missing zone param used in get_vm() in utils 2016-12-08 11:32:35 -05:00
Rene Moser 5a2a5b16d5 cloudstack: add new module cs_instance
Manages instances and virtual machines
2016-12-08 11:32:35 -05:00
Toshio Kuratomi c90509dc9f doc formatting 2016-12-08 11:32:35 -05:00
Rene Moser 955292704b cloudstack: add new module cs_vmsnapshot
This module depends on ansible.module_utils.cloudstack.
2016-12-08 11:32:34 -05:00
Rene Moser 7890c129db cloudstack: add new module cs_affinitygroup
This module depends on ansible.module_utils.cloudstack.
2016-12-08 11:32:34 -05:00
Rene Moser 57f5e46e99 cloudstack: add new module cs_securitygroup_rule
This module depends on ansible.module_utils.cloudstack.
2016-12-08 11:32:34 -05:00
Rene Moser 15f24f3021 cloudstack: add new module cs_securitygroup
This module depends on ansible.module_utils.cloudstack.
2016-12-08 11:32:34 -05:00
Rene Moser 8f0a2ce50d cloudstack: rename modules to more meaningful name schema 2016-12-08 11:32:33 -05:00
Brian Coca 346e34ac79 fixed doc issues with cloudstack_fw 2016-12-08 11:32:31 -05:00
Rene Moser 71a7df8f12 cloudstack_sshkey: cleanup docs 2016-12-08 11:32:31 -05:00
Rene Moser d4333080c4 cloudstack_ssh: replace ssh public key if fingerprints do not match 2016-12-08 11:32:31 -05:00
Rene Moser 4c35f75597 cloudstack_ssh: update description 2016-12-08 11:32:31 -05:00
Rene Moser 06cfffa35c cloudstack_ssh: register_ssh_key() set public_key as param 2016-12-08 11:32:31 -05:00
Rene Moser 1d0ce5c5ea cloudstack_ssh: fix missing projectid if state=absent 2016-12-08 11:32:31 -05:00
Rene Moser 742d581261 cloudstack: add new module cloudstack_sshkey
This module depends on ansible.module_utils.cloudstack.
2016-12-08 11:32:31 -05:00
Rene Moser a01cb6464e cloudstack: add new module cloudstack_iso 2016-12-08 11:32:31 -05:00