Commit Graph

136 Commits (c2b695390b55394796d0a440fc8362bd4654f894)

Author SHA1 Message Date
Monty Taylor c2b695390b Actually pass in is_public to create_image
Fixes #2325
2016-12-08 11:23:43 -05:00
Brian Coca e0d4d397ff fixed mispelled description 2016-12-08 11:23:42 -05:00
David Shrewsbury 024b8365c2 Clarify password requirement and add return docs. 2016-12-08 11:23:42 -05:00
David Shrewsbury c66491c076 Add OpenStack Keystone User module
This is a replacement for PR #1598 and fixes #283
2016-12-08 11:23:42 -05:00
David Shrewsbury 92e6e2f7ea Fix os_router to accept internal interfaces
Allow the 'interfaces' attribute to represent internal router
interfaces, composed of subnet names, and the 'external_fixed_ips'
attribute to represent external interface subnet/IP.
2016-12-08 11:23:41 -05:00
Lars Kellogg-Stedman 413a9d0c62 fix handling of nics argument
The existing code was receiving a list of strings and erroneously
assuming it was being given a list of dictionaries, leading it to fail
with:

    AttributeError: 'str' object has no attribute 'get'

This commit corrects the list handling code to check the type of each
item and handle it appropriately.   Also, based on bcoca's comment
in #2253, thie code removes the special case for a string-only argument.

By transforming string arguments into dicts and then handling them like
any other dict argument, this also permits arguments of the form:

    nics: net-name=mynet

Or:

    nics: port-name=mynet

Previous versions of this code only supported `net-id` and `port-id` in
string specifications.
2016-12-08 11:23:41 -05:00
Monty Taylor db59af564e Make the auto ip parameter auto_ip
There was a parameter in the docs called 'public_ip' that didn't
actually exist. Additionally, auto_floating_ip is not consistent with
the underlying parameter which is auto_ip - for no good reason.

Add auto_ip as the real parameter, and then make public_ip and
auto_floating_ip as aliases for it for backwards compatability.

Fixes #2301
2016-12-08 11:23:41 -05:00
Brian Coca 5ecbd6c63a fixed results docs 2016-12-08 11:23:41 -05:00
Toshio Kuratomi 9c5ce44477 Some docs fixes 2016-12-08 11:23:41 -05:00
dagnello 11f66c0742 Adding string support to metadata argument
This patch adds support to setting metadata key/value through a string
argument.  Variables can now be used for both the metadata key and
value.

example:
meta: "{{ var1 }}:SomeValue,key:{{ var2 }}"
2016-12-08 11:23:41 -05:00
Brian Coca a1484a0e5b doc fixes 2016-12-08 11:23:40 -05:00
Adrian Lopez 624e95d718 Fix yaml syntax 2016-12-08 11:23:39 -05:00
Toshio Kuratomi 99659c8667 Fix docs build 2016-12-08 11:23:38 -05:00
David Shrewsbury bf9c3e0092 Add author to os_router 2016-12-08 11:23:38 -05:00
David Shrewsbury 78ea0df607 Deprecate older router modules.
The quantum_router_gateway.py and quantum_router_interface.py modules
are deprecated with this change.
2016-12-08 11:23:38 -05:00
David Shrewsbury f91cc1d3e5 Allow setting external attribute
With shade > 0.13.0, networks can be created that are externally
accessible. This adds a parameter for that.

Also, add RETURN documentation and 'if __name__' check around call
to main().
2016-12-08 11:23:38 -05:00
David Shrewsbury 14546fe33c Allow complete router configuration
This change allows one to completely configure a router, including
gateway and interfaces, using the latest shade (>0.13.0).
2016-12-08 11:23:38 -05:00
dagnello ec1c18e3d5 Adding new os_subnets_facts module
There can be instances during an Ansible play where the list of subnets
currently available from OpenStack is required.  This update provides
subnet list functionality as a new os_subnets_facts module.
2016-12-08 11:23:37 -05:00
dagnello d46894cf91 Adding new image facts module 2016-12-08 11:23:37 -05:00
dagnello d76f6cceed Adding os_port Module to openstack ansible modules 2016-12-08 11:23:36 -05:00
dagnello a4148c50e9 Adding os_networks_facts module
There can be instances during an Ansible play where the list of networks
currently available from OpenStack is required.  This update provides
network list functionality as a new os_networks_facts module.
2016-12-08 11:23:36 -05:00
Abitha Palaniappan 5047561036 os_server: Adding support to accept 'n' nic args as a string containing list 2016-12-08 11:23:36 -05:00
David Shrewsbury b67fb2bd29 More os_router module cleanup and fixes.
Added a RETURN section, corrected version_added value, removed use of
'result' in exit_json() calls.
2016-12-08 11:23:36 -05:00
Abitha Palaniappan d26bff8162 Add support for port-id,port-name to nics in os_server 2016-12-08 11:23:35 -05:00
Victor Costan 8d9768c049 Fix indentation in os_server documentation 2016-12-08 11:23:35 -05:00
Victor Costan 2f11d96d49 os_server: nice error when flavor not found
When we can't find the VM flavor that the user requests, this change replaces the non-descript stack trace with a clear error message.
2016-12-08 11:23:34 -05:00
James Martin c90bf9df98 Adds sanity check to make sure nics is a list. 2016-12-08 11:23:34 -05:00
Tony Kinsley 79f98bffcf Adding start and stop actions to os_server_actions
Also making the os_server module allow a server in the possible new
states from the os_server_actions changes
2016-12-08 11:23:34 -05:00
Luke aa9b8b8552 removed hyphens in module name in examples 2016-12-08 11:23:33 -05:00
Nithy Renganathan eb3f28effc Handle the changed value 2016-12-08 11:23:32 -05:00
Mahesh Sawaiker 4b6471d5e7 support creating role only 2016-12-08 11:23:32 -05:00
Shobhit Srivastava 316ccb0e65 checking remote_group_id while comparing os_security_group_rule 2016-12-08 11:23:31 -05:00
Monty Taylor f71446045f Add OpenStack Group content module 2016-12-08 11:23:29 -05:00
David Shrewsbury 94ae8bbc9b Update os_router to the latest version
This version uses the latest shade for a cleaner interface,
support for check mode, and updating an existing router.
2016-12-08 11:23:28 -05:00
Monty Taylor 5ca11fa255 Add OpenStack Router module
Also deprecate old quantum_router module
2016-12-08 11:23:28 -05:00
Hideki Saito 2cb83fb196 The nova_compute module create a list of un-use floating ip by value of fixed_ip.
Fixes #249
2016-12-08 11:23:28 -05:00
Jesse Keating a913370687 Handle non-updatable openstack subnet details
Some things cannot be updated via the API, so check for those and fail
if the user is wanting to update them. Also don't try to update ipv6
stuff, as that doesn't work and will cause a traceback.
2016-12-08 11:23:26 -05:00
Mike Putnam 9623cd570c Add missing GPLv3 License header
Fixes #1643
2016-12-08 11:23:25 -05:00
David Shrewsbury 014459e5ef Add new os_nova_flavor module.
The os_nova_flavor module allows a user with administrative privileges
to create and delete nova flavors.
2016-12-08 11:23:22 -05:00
Monty Taylor 8e26a7ae17 Fix a small typo in parameter processing 2016-12-08 11:23:19 -05:00
Jesse Keating 16381fb5c0 Plumb ipv6 modes into os_subnet
Shade already supports these, we just need to plumb them into the module
code.
2016-12-08 11:23:18 -05:00
Jesse Keating 72809ac329 Fix up docs 2016-12-08 11:23:18 -05:00
Monty Taylor 530f12035b Update docstring to show port ranges as optional 2016-12-08 11:23:18 -05:00
David Shrewsbury 789c1fcbe7 Correct port matching logic
Port matching logic did not take into account recent shade change
to equate (None, None) to (1, 65535) when Nova is the backend.

Also, this encapsulates the port matching logic into a single function
and heavily documents the logic.
2016-12-08 11:23:18 -05:00
David Shrewsbury 387fe5b0e7 Change required parameters for rules module
The ports and protocol are no longer required (and now depends on
a new version of shade).
2016-12-08 11:23:18 -05:00
Davide Guerri 531b93490b Fix reuse argument documentation 2016-12-08 11:23:18 -05:00
Davide Guerri 95cfe3da96 Update os_floating_ip with new shade methods 2016-12-08 11:23:18 -05:00
Monty Taylor 4f2028439f Use int in the parameter list instead of casting 2016-12-08 11:23:18 -05:00
dagnello 2c3fc61357 Resolving issues in rule comparison algorithm
Port range min/max values are at times represented as string and
compared to int equivalents.  This fix explicitly ensures all
port range values are ints for proper comparisons.
2016-12-08 11:23:18 -05:00
David Shrewsbury e7dd93c5c1 Compare ports as strings
Ports as returned from shade are ints. They are strings as they come
in to the module.
2016-12-08 11:23:18 -05:00