Dag Wieers
56eb997bae
cs_nic: PEP8 compliancy and documentation changes ( #32655 )
...
This PR includes:
- PEP8 compliancy changes
- Documentation changes
2017-11-08 02:14:12 -05:00
René Moser
8b8d5aaca7
cs_instance: remove CloudStackException dep ( #31724 )
...
- fixes dep
- fix docs
2017-10-14 00:09:57 +02:00
René Moser
540d53327d
cs_instance_facts: fix pep8 ( #31606 )
2017-10-12 14:00:14 +10:00
René Moser
e872763877
cs_portforward: remove CloudStackException dep ( #31610 )
...
- fixes pep8
- fixes doc
2017-10-12 00:25:01 +02:00
René Moser
c1121dd5fb
cs_securitygroup_rule: remove CloudStackException dependency ( #31603 )
...
- fixes pep8
- fixes docs
2017-10-11 22:23:00 +02:00
René Moser
af6e89fbc8
cs_securitygroup: remove CloudStackException dep ( #31597 )
...
- fixes pep8
- fixes docs
2017-10-11 20:58:08 +02:00
Rene Moser
4dc3874176
cs_snapshot_policy: fix VM not found in non-default zone
2017-10-11 18:35:54 +02:00
Rene Moser
d6e1f02990
cs_snapshot_policy: remove CloudStackException dependency
2017-10-11 18:35:54 +02:00
Toshio Kuratomi
4cad720b22
Remove wildcard imports from cloudstack modules.
...
Also add boilerplate.
2017-10-09 21:41:02 -07:00
Rene Moser
d7fa3ab487
cloudstack: cs_template: remove dependency to CloudStackException
...
* fixes docs
* fixes pep8
2017-09-29 11:11:22 +02:00
René Moser
f128796782
cs_volume: fix CloudStackException dependency ( #30389 )
...
fixes pep8
2017-09-15 20:40:28 +02:00
René Moser
cc3bb0a043
cloudstack: cs_instance: warn for changes not applicable to running VMs. ( #28664 )
2017-08-25 16:47:14 +02:00
David Kretch
beed59f303
Fix trailing space in ec2_vol example, fix 'the the' typos ( #28440 )
...
* Fix 'the the' typos, fix 'pahting' filename typo
* Change 'the the' typos to a single 'the'.
* Change `playbook_pahting.rst` to `playbook_pathing.rst`.
* Delete trailing space in ec2_vol example
Delete the trailing space in `instance: "{{ item.id }} "`, which makes the
example fail when run because it looks for instance "i-xxxx ".
2017-08-19 23:00:51 +02:00
René Moser
b3a57a4014
cloudstack: cs_host: add host_tag alias ( #28417 )
2017-08-18 22:41:52 +02:00
Rene Moser
f6b7c1a6c1
cloudstack: cs_storage_pool: fix state handling, add tests
...
cs_storage_pool: rm CloudStackException dependency
cs_storage_pool: fix UnboundLocalError in check mode
local variable 'pool' referenced before assignment
2017-08-18 22:08:41 +02:00
John McEleney
7549b27544
Add new module cs_storage_pool
...
- Changed zone_name to name - Changed cluster_name to cluster - Changed pod_name to pod - Corrected tags type in docs - Remove unneeded returns - Other simplifications
2017-08-18 22:08:41 +02:00
Toshio Kuratomi
f203ca7907
Update metadata to 1.1
2017-08-15 23:12:08 -07:00
René Moser
fdaa803cca
cloudstack: cs_vmsnapshot: fix pep8 ( #27792 )
2017-08-05 10:34:17 +02:00
René Moser
f1ef61da4e
cloudstack: cs_domain: tests: add update tests ( #27791 )
2017-08-05 10:33:01 +02:00
René Moser
5700b09610
cloudstack: new module cs_instance_nic_secondaryip, replaces cs_nic ( #26491 )
2017-08-04 15:01:12 +02:00
Rene Moser
e2914a45e1
cloudstack: make facts run in check mode
2017-07-26 11:55:53 +02:00
René Moser
c16b1844a9
cloudstack: cs_facts: add option for custom meta data host ( #27290 )
2017-07-26 11:49:15 +02:00
Toshio Kuratomi
0d290bddda
Port cs_facts to the ansible 2.4 facts API ( #27257 )
...
* Port cs_facts to the ansible 2.4 facts API
Fixes #27256
References #27254
2017-07-25 12:08:54 -07:00
René Moser
a566a7ea2e
cloud: cs_user: add feature keys handling ( #27285 )
2017-07-25 18:07:58 +02:00
René Moser
b3e8fa72ce
cloudstack: cs_cluster: remove duplicate code error handling ( #27261 )
2017-07-25 11:33:58 +02:00
René Moser
30ad30c470
cloudstack: remove CloudStackException dep for several modules ( #26874 )
...
* cloudstack: cs_affinitygroup: remove CloudStackException dependency
* cloudstack: cs_domain: remove CloudStackException dependency
* cloudstack: cs_firewall: remove CloudStackException dependency
* cloudstack: cs_host: remove CloudStackException dependency
* cloudstack: cs_instancegroup: remove CloudStackException dependency
* cloudstack: cs_pod: remove CloudStackException dependency
* cloudstack: cs_configuration: remove CloudStackException dependency, fix pep8
* cloudstack: cs_cluster: remove CloudStackException dependency
* cloudstack: cs_network_acl: remove CloudStackException dependency
* cloudstack: cs_network_acl_rule: remove CloudStackException dependency
* cloudstack: cs_zone_facts: remove CloudStackException dependency
* cloudstack: cs_zone: remove CloudStackException dependency
* cloudstack: cs_vpn_gateway: remove CloudStackException dependency
* cloudstack: cs_vpc: remove CloudStackException dependency
* cloudstack: cs_sshkeypair: remove CloudStackException dependency
* cloudstack: cs_role: remove CloudStackException dependency
* cloudstack: cs_ip_address: remove CloudStackException dependency
* cloudstack: cs_ip_staticnat: remove CloudStackException dependency
* cloudstack: cs_resourcelimit: remove CloudStackException dependency
* cloudstack: cs_region: remove CloudStackException dependency
* cloudstack: cs_project: remove CloudStackException dependency
* cloudstack: cs_network: remove CloudStackException dependency
* cloudstack: cs_loadbalancer_rule_member: remove CloudStackException dependency
* cloudstack: cs_loadbalancer_rule: remove CloudStackException dependency
* cloudstack: cs_iso: remove CloudStackException dependency
2017-07-16 22:05:14 +02:00
René Moser
8477525d2b
cloudstack: cs_account: remove CloudStackException dependency ( #26870 )
2017-07-16 12:02:28 +02:00
Rene Moser
1a27546039
cloudstack: cs_router: use query_api, remove CloudStackException dependency
2017-07-16 11:46:10 +02:00
Rene Moser
9543025b91
cloudstack: cs_router: fix pep8
2017-07-16 11:46:10 +02:00
Rene Moser
d88e9ab869
cloudstack: cs_router: add zone param
2017-07-16 11:46:10 +02:00
Rene Moser
c896aab5e3
cloudstack: cs_router: fix router not found and async polling in reboot
2017-07-16 11:46:10 +02:00
René Moser
5979f2543f
cloudstack: cs_instance_nic: remove duplicate code ( #26869 )
2017-07-16 11:41:36 +02:00
René Moser
1d907de966
cloudstack: cs_user: fix pep8 and minor restyling ( #26849 )
2017-07-15 19:16:53 +02:00
René Moser
2a751e1753
cloudstack: cs_instance_nic: remove CloudStackException dependency ( #26860 )
2017-07-15 19:12:32 +02:00
Rene Moser
6d81c9670f
cloudstack: cs_role: fix UnboundLocalError in check mode
2017-07-14 00:51:35 +02:00
Rene Moser
dd9e6e9623
cloudstack: cs_iso: extend returns
2017-07-12 00:49:37 +02:00
Rene Moser
64643c4e7d
cloudstack: cs_iso: add cross_zone param
2017-07-12 00:49:37 +02:00
Rene Moser
31d530d6af
cloudstack: cs_iso: add display_text param
2017-07-12 00:49:37 +02:00
Rene Moser
3dc379c89d
cloudstack: cs_iso: add update support, fixes pep8
2017-07-12 00:49:37 +02:00
René Moser
3050856f2a
cloudstack: cs_instancegroup: fix pep8 ( #26534 )
2017-07-07 19:08:39 +02:00
Rene Moser
4183d77c70
cloudstack: cs_instance_nic: add ip_address param
2017-07-07 16:50:57 +02:00
Marc-Aurèle Brothier
ee8ce99bed
cloudstack: add nic operation ( #26168 )
...
* CloudStack: Remove networkid parameter in global list
* New module for CloudStack VM's Nic
Closes #25911
* Review changes
2017-07-07 13:41:59 +02:00
René Moser
63f4aa3069
cloudstack: cs_host: add state maintenance ( #26502 )
2017-07-07 08:33:26 +02:00
Rene Moser
37b22673fb
cloudstack: cs_instance: fix KeyError: 'sshkeypair'
2017-07-04 15:58:21 +02:00
René Moser
363761fc16
cloudstack: cs_template: default is_routing=None, fixes template upload for users ( #26248 )
2017-06-29 17:43:31 +02:00
Rene Moser
1f5839777b
cloudstack: cs_host: revamp fixes several issues
2017-06-26 14:40:09 +02:00
loqutus
f6e4019804
fix networkdid->networkid in cs_nic.py ( #25914 )
2017-06-23 07:15:03 +01:00
Abhijeet Kasurde
f65ced0438
cloudstack: Use errortext from router in cs_router ( #25634 )
...
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2017-06-13 11:11:53 +02:00
netservers
d5becd728e
Have cs_host search both name and ipaddress fields when fetching the host from listHosts. ( #25628 )
...
Make ip_address an alias of name to allow playbooks to more clearly make
use of IP addreses.
2017-06-13 07:30:59 +02:00
Abhijeet Kasurde
b89cb95609
Fix spelling mistakes (comments only) ( #25564 )
...
Original Author : klemens <ka7@github.com>
Taking over previous PR as per
https://github.com/ansible/ansible/pull/23644#issuecomment-307334525
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2017-06-12 07:55:19 +01:00
René Moser
29817ab115
cloudstack: add tests, fix pep8 ( #25518 )
...
* cloudstack: cs_zone: fix pep8
* cloudstack: cs_zone: add tests
2017-06-09 18:48:53 +02:00
René Moser
76c598f044
cloudstack: cs_zone: fix missing type bool for params ( #25552 )
2017-06-09 18:10:32 +02:00
René Moser
894b86a467
cloudstack: cs_zone_facts: add tests and fix pep8 ( #25407 )
2017-06-07 00:35:24 +02:00
René Moser
53c46df323
cloudstack: new module cs_network_acl_rule ( #25325 )
...
* cloudstack: new module cs_network_acl_rule
* fix doc errors
2017-06-03 14:34:09 +02:00
René Moser
3e02b19b98
cloudstack: fix pep8 cs_project ( #25322 )
2017-06-03 01:42:03 +02:00
Abhijeet Kasurde
07be5f2b67
spelling fixes (non-trivial, changing messages) ( #25094 )
...
Multiple spell fixes in single commit.
Taking over existing PR as per comment -
https://github.com/ansible/ansible/pull/23645#issuecomment-304312275
Original Author: klemens <ka7@github.com>
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2017-06-01 10:45:19 +01:00
Rene Moser
9cbae80c3b
cloudstack: fix pep8 cs_pod
2017-05-29 01:28:19 +02:00
Rene Moser
3ef37e88fe
cloudstack: fix pep8 cs_facts
2017-05-29 01:28:19 +02:00
Rene Moser
439f0beca5
cloudstack: fix pep8 cs_domain
2017-05-29 01:28:19 +02:00
Rene Moser
1778e23fad
cloudstack: fix pep8 cs_account
2017-05-29 01:28:19 +02:00
Rene Moser
e3f75227bc
cloudstack: fix pep8 cs_affinitygroup
2017-05-29 01:28:19 +02:00
Rene Moser
9fe3891d65
cloudstack: fix pep8 cs_cluster
2017-05-29 01:28:19 +02:00
René Moser
3ca3163af1
cloudstack: add new module cs_network_acl ( #24609 )
2017-05-15 10:57:38 +02:00
René Moser
2ef6713abb
cloudstack: new module cs_vpn_gateway ( #23954 )
...
* cloudstack: new module cs_vpn_gateway
* add integration tests for cs_vpn_gateway
2017-05-10 14:55:14 +02:00
Matt Clay
d999d613cb
Python 3 fixes for CloudStack modules and tests. ( #24400 )
2017-05-09 13:37:08 +02:00
René Moser
594d7d5d9d
cloudstack: cs_region: fix pep8 ( #24134 )
2017-04-29 09:16:21 +02:00
Andrea Tartaglia
1d0a629dcc
Fixed docs for cloud modules ( #23745 )
...
* Fixed docs for cloud modules
* removed blank line in ec2_snapshot_facts
2017-04-27 12:01:11 +01:00
Khachatur Nazaretyan
e8f1747a88
Adds attached volumes to instance facts ( #23132 )
...
* Adds attached volumes to instance facts
* Fixed identation and modified coding style
* includes revisions after maintainers review
* Coding style modified
* simplifies getting items from dict
2017-04-09 11:59:41 +02:00
AlexanderStock
e4206d8ef5
Added Tag functionality to Volume,Template,FWRule,PF Rule,ISO,Snapshot ( #23141 )
...
* Added Tag functionality to Volume,Template,FWRule,PF Rule,ISO,Snapshot
* Update cs_firewall.py
Fixed whitespace
* Added doc for Cloudstack Tags in Volume,Template,FWRule,PF Rule,ISO,Snapshot
2017-03-31 18:39:30 +02:00
Matt Martz
3164e8b561
E501 fixes ( #22879 )
2017-03-22 20:50:28 -05:00
Matt Martz
02f66b9369
E1 legacy pep8 fixes ( #21933 )
...
* E1 pep8 fixes
* e111 fix for rds.py
2017-03-21 21:19:40 -05:00
René Moser
e3525d8df9
cloudstack: fix pep8 for loadbalancer modules ( #22822 )
2017-03-21 11:00:46 +01:00
René Moser
24c617766c
cloudstack: fix load balancer idempotency if no zone given ( #22768 )
...
get_zone() is special, as it always returns a zone (default zone) even
if no zone param is given. This makes sense for many use cases.
2017-03-19 10:07:46 +01:00
René Moser
0ee108bda0
cloudstack: cs_instance: revert VPC support ( #22629 )
...
Partly reverts 5374c7cd09
2017-03-15 02:02:38 +01:00
René Moser
a2b6844858
cloudstack: cs_network: fix VPC support ( #22627 )
...
* cloudstack: cs_network: fix vpc support
* cloudstack: cs_network: fix pep8
2017-03-15 02:00:40 +01:00
René Moser
38b9f055d7
cloudstack: cs_staticnat: fix VPC support ( #22626 )
...
- Fix the VPC support by adding network to create and update methods
- Fix pep8
2017-03-15 01:59:20 +01:00
René Moser
a227a4ebb4
cloudstack: cs_ip_address: fix vpc support ( #22625 )
...
* cloudstack: cs_ip_address: fix vpc support
* cloudstack: cs_ip_address: fix pep8
2017-03-15 01:58:46 +01:00
Toshio Kuratomi
eb1214baad
New metadata 1.0 ( #22587 )
...
Changes to the metadata format were approved here:
https://github.com/ansible/proposals/issues/54
* Update documentation to the new metadata format
* Changes to metadata-tool to account for new metadata
* Add GPL license header
* Add upgrade subcommand to upgrade metadata version
* Change default metadata to the new format
* Fix exclusion of non-modules from the metadata report
* Fix ansible-doc for new module metadata
* Exclude metadata version from ansible-doc output
* Fix website docs generation for the new metadata
* Update metadata schema in valiate-modules test
* Update the metadata in all modules to the new version
2017-03-14 09:07:22 -07:00
René Moser
2be3418a81
cloudstack: fix wrong vpc found by name ( #22603 )
...
Fail fast if more than one VPC found with given identifier.
2017-03-14 16:18:32 +01:00
John R Barker
e5b990a55a
Fix invalid fields in module DOCUMENATION ( #22297 )
...
* fix module doc fields
* More module docs corrections
* More module docs corrections
* More module docs corrections
* More module docs corrections
* correct aliases
* Review comments
* Must quote ':'
* More authors
* Use suboptions:
* restore type: bool
* type should be in the same place
* More tidyups
* authors
* Use suboptions
* revert
* remove duplicate author
* More issues post rebase
2017-03-09 16:20:25 +00:00
René Moser
6f426b9d06
cloudstack: cs_vpc: fix vpc in projects not found ( #22416 )
2017-03-08 18:52:29 +01:00
René Moser
7f35220744
cloudstack: cs_firewall: fix pep8 and typo s/endpoint/endport/ ( #22406 )
2017-03-08 15:12:48 +01:00
Kamil Cholewiński
ec9582fd83
Fix invocations of module.fail_json with no msg=
...
Bonus: add missing % in cs_nic.py
2017-03-07 10:17:14 -05:00
René Moser
c1730c21ce
cloudstack: cs_sshkeypair: fix fingerprint not used as identifier ( #22276 )
...
* cloudstack: cs_sshkeypair: fix fingerprint not used as identifier
* remove from legacy
* fix for 2 keys, one with name and one with fingerprint
2017-03-05 22:47:19 +01:00
René Moser
60aa3db1ad
Fix/cs resoucelimit pep8 ( #22102 )
...
* cloudstack: cs_resourcelimit: fix type for limit
* cloudstack: cs_resourcelimit: fix pep8
2017-03-01 11:41:26 +00:00
René Moser
cecf22039d
cs_vpc: fix pep8 ( #21964 )
2017-02-26 10:21:12 +01:00
Brian Coca
5258e6d52a
use safe load instead
...
fixes #21724
2017-02-21 17:45:46 -05:00
Matt Martz
7c00346714
Validate EXAMPLES as YAML
2017-02-15 13:01:43 -08:00
Brian Coca
74e8aa22af
no log passwords ( #21229 )
...
* no log passwords
* removed unneeded no_log
2017-02-10 15:13:59 -05:00
René Moser
a6f887ce6e
cloudstack: cs_portforward: implement vpc support ( #19044 )
...
* cloudstack: cs_portforward: implement vpc support
* cloudstack: cs_portforward: add vpc and network to returns
* cloudstack: cs_portforward: networkid must not be used for rule listing
* cloudstack: fail for get_network when vpc but no network name
This seem to be a global pattern for get_network, we want to enforce a
network name to be set if a vpn param is given.
This is used for cs_portforward.
* cloudstack: cs_portforward: doc: fix defaults for vpc, network
2017-02-08 07:57:36 +01:00
René Moser
c00604210c
cs_instance: fix ssh keys not found in projects ( #21104 )
...
Follow up of 5475f3ee64
2017-02-07 22:14:43 +01:00
Vincent Bernat
d94f9bdd8d
cloudstack: ensure we select a template compatible with disksize ( #21058 )
...
When the user specify a root disk size, the template image must be
smaller than the specified root disk size.
2017-02-06 23:14:31 +01:00
Matt Clay
cb76200c7d
PEP 8 E111 & E114 cleanup. ( #20838 )
2017-01-30 15:01:47 -08:00
Matt Clay
10d9318de7
PEP 8 indent cleanup. ( #20800 )
...
* PEP 8 E121 cleanup.
* PEP 8 E126 cleanup.
* PEP 8 E122 cleanup.
2017-01-29 07:28:53 +00:00
Matt Clay
95789f3949
PEP 8 whitespace cleanup. ( #20783 )
...
* PEP 8 E271 whitespace cleanup.
* PEP 8 W293 whitespace cleanup.
* Fix whitespace issue from recent PR.
2017-01-27 15:45:23 -08:00
René Moser
d1c3cbbc70
cloudstack: fix user data unexpected marked as changed ( #20540 )
...
self.instance may be overwritten before the user data comparsion which result in a false positive changed state.
With this commit, we make sure we have the userdata when we need to.
2017-01-24 11:10:59 -05:00
René Moser
5475f3ee64
cloudstack: cs_instance: fix ssh key always marked as changed ( #20541 )
...
The same ssh key may be registered with different names. Before we only looked at the names and marked as changed when names differ. However internally cloudstack seems to ignore the change, if the fingerprints are identical.
As a result we also have to compare the fingerprints and only mark the keys as changed if the fingerprints differ.
2017-01-24 07:49:54 +01:00
Rene Moser
3fbbdcd466
doc: cloudstack: cs_host: fix return docs
2017-01-17 20:39:33 +01:00
René Moser
bcf9cd1e2a
cloudstack: cs_iso: fix async poll for state=absent ( #20050 )
2017-01-10 12:06:13 +01:00
René Moser
cb8cc51fdf
cloudstack: new module cs_host ( #19331 )
2017-01-05 16:28:42 +01:00