David Shrewsbury
fde149cbe8
Clarify password requirement and add return docs.
9 years ago
David Shrewsbury
cdf7117f7e
Add OpenStack Keystone User module
...
This is a replacement for PR #1598 and fixes #283
9 years ago
Brian Coca
0f308e1e07
Merge pull request #2275 from larsks/bug/2253
...
fix handling of nics argument
9 years ago
Brian Coca
b73ffa3b6f
Merge pull request #2310 from Shrews/os_router
...
Fix os_router to accept internal interfaces
9 years ago
David Shrewsbury
55e9dc73f5
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.
9 years ago
Lars Kellogg-Stedman
06098a9d69
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.
9 years ago
Monty Taylor
4590ba4e59
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
9 years ago
Brian Coca
5da7cf696c
fixed results docs
9 years ago
Toshio Kuratomi
3af0d509c5
Some docs fixes
9 years ago
Brian Coca
7b21bc7144
Merge pull request #2238 from dagnello/server_meta_string
...
Adding string support to metadata argument
9 years ago
Brian Coca
6e54a5edc5
Merge pull request #2077 from dagnello/subnet_list_state
...
Adding os_subnets_facts module
9 years ago
Brian Coca
f35ab5faca
Merge pull request #2106 from dagnello/port_module
...
Adding os_port Module to openstack ansible modules
9 years ago
Brian Coca
f707a711cd
doc fixes
9 years ago
dagnello
83a9f293fd
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 }}"
9 years ago
Brian Coca
969c4eb493
Merge pull request #2078 from abithap/devel
...
os_server: Adding support to accept 'n' nic args as a string containi…
9 years ago
Brian Coca
af82f4b23e
Merge pull request #2105 from dagnello/network_list_state
...
Adding os_networks_facts module
9 years ago
Brian Coca
00a18c2a6e
Merge pull request #2110 from dagnello/os_image_facts
...
Adding new image facts module
9 years ago
Adrian Lopez
8c7d697c17
Fix yaml syntax
9 years ago
dagnello
3365dad0d8
Adding os_port Module to openstack ansible modules
9 years ago
James Cammarata
02c9a1b336
Merge pull request #2158 from Shrews/os_network
...
Allow setting external attribute
9 years ago
Toshio Kuratomi
dbc860daaa
Fix docs build
9 years ago
Brian Coca
79ec9efd7b
Merge pull request #1048 from emonty/feature/os_router
...
Add OpenStack Router module
9 years ago
David Shrewsbury
aa1e8b8b05
Add author to os_router
9 years ago
David Shrewsbury
08e91ef68f
Deprecate older router modules.
...
The quantum_router_gateway.py and quantum_router_interface.py modules
are deprecated with this change.
9 years ago
David Shrewsbury
750a91520f
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().
9 years ago
David Shrewsbury
d52bb67978
Allow complete router configuration
...
This change allows one to completely configure a router, including
gateway and interfaces, using the latest shade (>0.13.0).
9 years ago
dagnello
40974a9811
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.
9 years ago
dagnello
7d09437328
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.
9 years ago
Abitha Palaniappan
e64791ef1a
os_server: Adding support to accept 'n' nic args as a string containing list
9 years ago
dagnello
842f09cf24
Adding new image facts module
9 years ago
James Cammarata
d2c7d30c50
Merge pull request #250 from saito-hideki/bug/249
...
The nova_compute module create a list of un-use floating ip by value of fixed_ip
9 years ago
James Cammarata
64c0b67154
Merge pull request #1599 from emonty/feature/os_user_group
...
Add OpenStack Group content module
9 years ago
James Cammarata
b743224aa9
Merge pull request #1831 from tkinz27/os_start_stop
...
Adding start and stop actions to os_server_actions
9 years ago
David Shrewsbury
ef93fb1c14
More os_router module cleanup and fixes.
...
Added a RETURN section, corrected version_added value, removed use of
'result' in exit_json() calls.
9 years ago
Abitha Palaniappan
f449a0f48c
Add support for port-id,port-name to nics in os_server
9 years ago
Victor Costan
2cc431f791
Fix indentation in os_server documentation
9 years ago
Victor Costan
2ae37e7845
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.
9 years ago
Brian Coca
8f31323b5c
Merge pull request #1862 from SinisterLight/devel
...
checking remote_group_id while comparing os_security_group_rule
9 years ago
James Martin
c54f875fdd
Adds sanity check to make sure nics is a list.
9 years ago
Chrrrles Paul
5fc4f9d876
Merge pull request #1982 from lowwalker/patch-2
...
Merging, good catch -- updated examples
9 years ago
Luke
40f2ff9fbf
removed hyphens in module name in examples
9 years ago
Luke
a4aa29edd9
updated examples
...
When testing with existing example, I received errors about auth block not being ingested. After adding the auth block, name and state with "=" caused syntax errors.
9 years ago
Tony Kinsley
bd210e42bc
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
9 years ago
Nithy Renganathan
4171d167f4
Handle the changed value
9 years ago
Mahesh Sawaiker
f459b3773c
support creating role only
9 years ago
Shobhit Srivastava
8ad072c96f
checking remote_group_id while comparing os_security_group_rule
9 years ago
Brian Coca
697307f88c
Merge pull request #1670 from mikeputnam/issue-1643-gpl-header
...
Add missing GPLv3 License header
9 years ago
Jesse Keating
84dfcf3690
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.
9 years ago
David Shrewsbury
6aac888c7d
Add new os_nova_flavor module.
...
The os_nova_flavor module allows a user with administrative privileges
to create and delete nova flavors.
9 years ago
Hideki Saito
a2979a3102
The nova_compute module create a list of un-use floating ip by value of fixed_ip.
...
Fixes #249
9 years ago
Toshio Kuratomi
350063532e
Merge pull request #1685 from j2sol/feature/os_subnet_ipv6
...
Plumb ipv6 modes into os_subnet
9 years ago
Monty Taylor
007efe438d
Merge pull request #1690 from emonty/typo-fix
...
Fix a small typo in parameter processing
9 years ago
Monty Taylor
fbb6277a37
Fix a small typo in parameter processing
9 years ago
Brian Coca
e3c774be6f
Merge pull request #1632 from emonty/feature/os_floating_ip
...
Add OpenStack Floating IP module
9 years ago
Jesse Keating
de89f9f99a
Plumb ipv6 modes into os_subnet
...
Shade already supports these, we just need to plumb them into the module
code.
9 years ago
Jesse Keating
76398781ba
Fix up docs
9 years ago
Monty Taylor
dd9c292861
Update docstring to show port ranges as optional
9 years ago
David Shrewsbury
6933407cd4
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.
9 years ago
David Shrewsbury
8664c88417
Change required parameters for rules module
...
The ports and protocol are no longer required (and now depends on
a new version of shade).
9 years ago
Monty Taylor
9f03302b68
Use int in the parameter list instead of casting
9 years ago
dagnello
2e8daa2330
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.
9 years ago
David Shrewsbury
f027e75976
Compare ports as strings
...
Ports as returned from shade are ints. They are strings as they come
in to the module.
9 years ago
David Shrewsbury
9d0c8b0507
Fix syntax error
9 years ago
Monty Taylor
0e5942d7e7
Return rule object
9 years ago
David Shrewsbury
16b3b72294
Update secgroup rules module for latest shade
...
This allows the rules module to work against either nova or neutron
for handling security groups. New parameters for 'direction' and
'ethertype' are added.
Check mode is supported with this version.
9 years ago
David Shrewsbury
5b6c6cac20
Recongnize None and -1 port equivalency
...
shade 0.7.0 represents disabled min/max ports as None (in the
neutron style) rather than -1. Recognize this as the same as -1.
9 years ago
David Shrewsbury
5758b4ebdc
Fix id value reference
9 years ago
David Shrewsbury
8f2e70a1c1
Update rules mode for latest shade
...
Shade 0.7.0 normalized the security group data that is returned,
when using nova, to look more like neutron security group data.
This adjusts for that change.
9 years ago
dagnello
b98e6663e8
Minor fixes for os_security_group_rule module
...
Was not able to use this module as it was. The changes submitted
resolved the issues I ran into in order to get it working.
9 years ago
dagnello
d35df1f217
Minor fixes for os_security_group_rule module
...
Was not able to use this module as it was. The changes submitted
resolved the issues I ran into in order to get it working.
9 years ago
Davide Guerri
a9301ba918
Fix invalid syntax in openstack_module_kwargs call
9 years ago
Monty Taylor
08b4bb42c4
Fix example code syntax
9 years ago
Monty Taylor
08b2f31915
Add OpenStack Security Group Rule module
9 years ago
Mike Putnam
6c0e264806
Add missing GPLv3 License header
...
Fixes #1643
9 years ago
David Shrewsbury
653060dc47
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.
9 years ago
Monty Taylor
edce6a41cf
Add OpenStack Router module
...
Also deprecate old quantum_router module
9 years ago
Toshio Kuratomi
ff69ce7912
Merge pull request #1638 from j2sol/bugfix/os_server_afip_doc
...
Document auto_floating_ip argument
10 years ago
Toshio Kuratomi
968386cba3
Merge pull request #1631 from emonty/features/single-cloud-details
...
Add filter ability to OpenStack os-client-config module
10 years ago
Toshio Kuratomi
02b6df3160
Fix indentation levels in os_keypair
10 years ago
Toshio Kuratomi
edad5c80ff
Few minor things from review of the pull request
10 years ago
Toshio Kuratomi
8703fb3c76
Merge pull request #1045 from emonty/feature/os_keypair
...
Add OpenStack Keypair module
10 years ago
Jesse Keating
ddc78c82a4
Document auto_floating_ip argument
10 years ago
David Shrewsbury
7970924bd5
Use newest documentation style for return value.
10 years ago
David Shrewsbury
e6fc129013
Add a note about the return value.
10 years ago
Monty Taylor
7b0b75ceed
Fix dict syntax typo
10 years ago
Davide Guerri
304e187a52
Fix reuse argument documentation
10 years ago
Davide Guerri
e3d9b51cbb
Update os_floating_ip with new shade methods
10 years ago
David Shrewsbury
bed420cd53
Update os_keypair for latest shade
...
Uses the latest version of shade for cleaner code. Also, always
return the key dict whether we create the key, or it already exists.
The example using public_key_file is corrected to use a full path
since ~ is not converted for us.
10 years ago
Monty Taylor
850ed126e2
Remove duplicate shade requirement
10 years ago
Monty Taylor
94a8b6dccc
Make sure we're always returning objects too
10 years ago
dagnello
d7f65af6d9
Resolving secgroup.id issue in this module
...
secgroup['id'] was not being returned in all cases where the
specified security group exists.
10 years ago
Brian Coca
6449a01311
Merge pull request #1536 from emonty/feature/os_security_group
...
Return OpenStack secgroup, not just id
10 years ago
Monty Taylor
02d0a73906
Move the order of argument processing
10 years ago
Davide Guerri
82dc5c4394
Avoind using lookup() in documentation
...
lookup() is currently broken (current Ansible devel branch), so better to avoid
it in our examples.
10 years ago
Monty Taylor
a226701efe
Add OpenStack Keypair module
...
Also deprecate old nova_keypair module.
10 years ago
Monty Taylor
759c2de7f9
Add filter ability
10 years ago
Monty Taylor
d8c51a67f3
Actually use changed variable
10 years ago
Monty Taylor
1a11f07d29
Return the secgroup for all present states
10 years ago
Monty Taylor
5609d1dc5a
Return resource objects from OpenStack modules
...
It's not uncommon for people to want to do additional things after
creating a module. Also, add a note about it to the dev notes.
10 years ago
Monty Taylor
ef22008cac
Return secgroup, not just id
10 years ago