Commit graph

265 commits

Author SHA1 Message Date
Monty Taylor
0bdf9f4d27 Add OpenStack Image module
Also deprecate old glance_image module
2015-06-05 15:58:10 -04:00
Monty Taylor
1e14e51150 Add OpenStack Security Group support
Two modules - one for security groups and one to manage rules in a
security group.
2015-06-04 12:27:10 -04:00
Monty Taylor
1b5b1cbfe8 Add missing state parameter 2015-06-04 12:10:07 -04:00
Monty Taylor
9e56b42574 AnsibleModule takes a dict as a param 2015-06-04 11:42:39 -04:00
James Cammarata
3256db99e2 Fixing digital_ocean documentation and a bug in os_subnet 2015-06-01 15:34:16 -07:00
Toshio Kuratomi
55d48a7a82 Finish up cleanups to modules:
* Add python>= 2.6 to documented requirements when a module's deps need
  python>= 2.6 so we know when a module can use python2.6+ syntax
* Remove BabyJSON usage
* Change modules to use if __name__ == '__main__' so that they can
  potentially be unittested

The BabJSON changes Fixes #1211
2015-06-01 15:34:16 -07:00
Brian Coca
145361aea3 Revert "Add deprecated documentation for _quantum_subnet"
cause it was already added

This reverts commit 3fa32c4984.
2015-06-01 15:24:15 -07:00
Toshio Kuratomi
9927e109b7 Add deprecated documentation for _quantum_subnet 2015-06-01 15:22:37 -07:00
Brian Coca
4348475ed3 doc fixes 2015-06-01 15:06:42 -07:00
David Shrewsbury
3692518643 Update os_subnet module for latest shade
Shade can now handle creating, updating and deleting subnets.
This cleans up the module to take advantage of that.
2015-06-01 15:03:44 -07:00
David Shrewsbury
abbf8a40ca Rename os_subnet to os_subnet.py 2015-06-01 15:03:44 -07:00
Monty Taylor
ef1c7eef5b Add OpenStack Subnet module
Also deprecated old quantum_subnet module
2015-06-01 14:59:14 -07:00
Monty Taylor
ce556a053e Return a list of OpenStack clouds
The main use of this is to feed jinja templating, so structure the
data returned slightly better for that purpose.
2015-06-01 11:01:17 -05:00
Monty Taylor
718c13bdf2 Add OpenStack Client Config module
All of the ansible OpenStack modules are driven by a clouds.yaml config
file which is processed by os-client-config. Expose the data returned by
that library to enable playbooks to iterate over available clouds.
2015-05-28 16:14:20 -04:00
Brian Coca
58c6c3dd03 Merge pull request #1046 from emonty/feature/os_network
Add OpenStack Network module
2015-05-26 13:46:28 -04:00
Jesse Keating
a14aee5239 Add an openstack servers actions module
This module supports a few of the server actions that are easy to
initially impiment. Other actions require input and provide return
values in the API calls that will be more difficult to impliment, and
thus are not part of this initial commit.
2015-05-21 16:19:57 -07:00
Monty Taylor
6606e4f68d Add OpenStack Network module
Also, deprecate the old quantum network module
2015-05-20 11:41:24 -07:00
Brian Coca
5011593ee3 fixed typo on novaclient var 2015-05-19 10:52:48 -04:00
James Cammarata
576ca33bdc Fixing digital_ocean documentation and a bug in os_subnet 2015-05-12 10:32:43 -05:00
Toshio Kuratomi
1f99382dfb Finish up cleanups to modules:
* Add python>= 2.6 to documented requirements when a module's deps need
  python>= 2.6 so we know when a module can use python2.6+ syntax
* Remove BabyJSON usage
* Change modules to use if __name__ == '__main__' so that they can
  potentially be unittested

The BabJSON changes Fixes #1211
2015-05-11 13:21:17 -07:00
Brian Coca
ec5cd89d7c Revert "Add deprecated documentation for _quantum_subnet"
cause it was already added

This reverts commit 3fa32c4984.
2015-05-05 17:14:04 -04:00
Toshio Kuratomi
3fa32c4984 Add deprecated documentation for _quantum_subnet 2015-05-05 10:50:24 -07:00
Brian Coca
2dc0343d63 added deprecated doc entry 2015-05-04 19:42:26 -04:00
Brian Coca
a6eafb87c8 minor doc fixes 2015-05-04 12:06:57 -04:00
David Shrewsbury
28488f1b84 Update os_server for shade flavor API changes
Latest shade fixes the flavor API so that raw objects are not
returned.
2015-05-04 11:36:57 -04:00
Monty Taylor
3834680f43 Add OpenStack Server module
Also deprecated old nova_compute module
2015-05-04 11:36:57 -04:00
Brian Coca
9a216915e9 doc fixes 2015-05-04 11:06:02 -04:00
Brian Coca
3496bac18d Merge pull request #1057 from emonty/feature/os_server_volume
Add OpenStack Server Volume module
2015-05-04 10:57:13 -04:00
Brian Coca
0060c47b8c Merge pull request #1058 from emonty/feature/os_subnet
Add OpenStack Subnet module
2015-05-04 10:56:25 -04:00
Brian Coca
6ed317df7c Merge pull request #1059 from emonty/feature/os_volume
Add OpenStack Volume module
2015-05-04 10:56:08 -04:00
Brian Coca
75319519cc Merge pull request #1182 from sky-shiny/os_validate_fip_network
Validate openstack floating ip against provided network name.
2015-05-04 10:48:00 -04:00
Pascal Borreli
f29a6ec54d Fixed typos 2015-05-04 12:54:03 +01:00
Brian Coca
1fe7da5bea Merge pull request #1180 from sky-shiny/os_multi_region_support
Adding openstack multiregion support for floating ip module.
2015-04-30 08:48:29 -04:00
David Shrewsbury
c451fbdd61 Update os_server_volume for latest shade
The shade volume API was updated to return a dict rather than the
object as returned by cinder.
2015-04-23 10:52:08 -04:00
David Shrewsbury
f4600edeb8 Update os_volume for latest shade
The shade volume API was updated to return a dict rather than the
object as returned by cinder.
2015-04-23 10:37:43 -04:00
Brian Coca
178d3ea133 minor doc fixes 2015-04-22 16:40:59 -04:00
Brian Coca
b0cf0ae912 Merge pull request #1056 from emonty/feature/os_server_facts
Add OpenStack Server facts module
2015-04-22 15:21:40 -04:00
mcameron
6498303786 Net_id already present, remove unnecessary lookup. 2015-04-21 13:22:04 +01:00
mcameron
cb2ba9fe31 Valodate fip is on the correct network 2015-04-21 13:21:56 +01:00
mcameron
394152f4ac Adding openstack multiregion support 2015-04-21 11:46:38 +01:00
Andrey Trubachev
1c8a8e8900 Fix mess of ipv6 and ipv4 addresses in private_ip 2015-04-20 15:28:56 +01:00
David Shrewsbury
c241296a20 Update os_subnet module for latest shade
Shade can now handle creating, updating and deleting subnets.
This cleans up the module to take advantage of that.
2015-04-16 09:19:29 -04:00
David Shrewsbury
b854a28dfb Rename os_subnet to os_subnet.py 2015-04-16 09:17:57 -04:00
David Shrewsbury
4a233a5a8f Recognize when volume attach/detach is not necessary
Do not attempt to attach an already attached volume.
Likewise, do not attempt to detach a volume that is not
attached.

This version adds support for check mode.
2015-04-07 14:37:06 -04:00
Brian Coca
c01a18d5ca minor docfixes 2015-04-02 21:07:41 -04:00
Monty Taylor
d7e65eab41 Add OpenStack Volume module 2015-03-31 19:42:41 -04:00
Monty Taylor
5d7b6aae04 Add OpenStack Subnet module
Also deprecated old quantum_subnet module
2015-03-31 19:42:09 -04:00
Monty Taylor
f6cf1411a1 Add OpenStack Server Volume module 2015-03-31 19:41:44 -04:00
Monty Taylor
cb6ebb1c03 Add OpenStack Server facts module 2015-03-31 19:41:17 -04:00
Monty Taylor
f2c6619826 Add OpenStack Object module 2015-03-31 19:36:24 -04:00
Monty Taylor
c9f1e441f5 Add OpenStack Auth module
Use this to pre-auth or to get a copy of the service catalog.
2015-03-31 19:32:05 -04:00
Monty Taylor
4656797389 Add Ironic Node module 2015-03-31 19:30:22 -04:00
Brian Coca
5641b1ff73 undeprecated openstack modules as new ones are not making into release 2015-03-19 15:15:17 -04:00
Monty Taylor
2e4091f31d One more OpenStack deprecation notice
Fixes #858
2015-02-27 07:05:03 -05:00
Monty Taylor
cae8241ea7 Add deprecation notices for old OpenStack modules 2015-02-26 21:12:27 -05:00
Monty Taylor
dd4a6e86bd Deprecate old OpenStack modules
There are a completely new set of modules that do all of the things like
keystone v3 and auth_plugins and the like correctly. Structurally
upgrading these would have been massively disruptive and there is no
real good way to do so without breaking people.

These modules should be kept around for several releases - they still
work for people - and they should get bug fixes. But they should not
take new features. New features should go to the os_ modules.
2015-02-26 10:00:49 -05:00
Jorge-Rodriguez
57f0d22482 Added optional parameter scheduler_hints. 2015-02-20 12:51:18 +02:00
mcameron
24f8792bab More general output. 2015-02-16 15:08:39 +00:00
mcameron
8eb7870a5e Useful log output. 2015-02-16 14:58:53 +00:00
Harri Hämäläinen
b354423bae Fixed typo in comment 2014-12-11 18:59:42 +02:00
Francois Deppierraz
f69a7553f7 Fix auto_floating_ip documentation
The default value is 'no' instead of the currently documented 'yes'.

See cloud/openstack/nova_compute.py line 543:

        auto_floating_ip                = dict(default=False, type='bool'),
2014-12-03 16:06:50 +01:00
John Batty
08b2752080 Fix get_flavor_id() when flavor_ram is specified
Without this fix, _get_flavor_id() fails to find a matching flavor if
both:
* the flavor_ram parameter is specified
* the first flavor in the list does not match.

The bug is simply that the module.fail_json() call lies within the loop
iterating through the flavors.  This call should only be made if the
loop completes and no matching flavors have been found.
2014-11-13 13:26:20 +00:00
Francois Deppierraz
2dee52616d Fix a typo in nova_compute documentation string
Without this patch, ansible-doc was failing this way:

$ ansible-doc nova_compute
Traceback (most recent call last):
  File "/home/francois/WORK/dev/ansible/bin/ansible-doc", line 324, in <module>
    main()
  File "/home/francois/WORK/dev/ansible/bin/ansible-doc", line 316, in main
    text += get_man_text(doc)
  File "/home/francois/WORK/dev/ansible/bin/ansible-doc", line 112, in get_man_text
    desc = " ".join(opt['description'])
KeyError: 'description'
2014-11-10 09:30:29 +01:00
Brian Coca
19ed60196c added __init__.py to new cloud subcategories so builds work again 2014-11-05 11:07:19 -05:00
Brian Coca
0c4adcb2c6 made subcategories for cloud modules for better organization 2014-11-04 11:18:09 -05:00