community.general/lib/ansible
Alberto Murillo 3e7b240696 os_keystone_endpoint.py (#29031)
* Add os_keystone_service_endpoint

This patch adds a new Ansible module which allows a user to create
an endpoint to a service with Keystone.

Fixes #23909

* os_keystone_endpoint: Fix style and messages

Fix comments, pep8, version, metadata, license header
and imports according to the Contributing Modules Checklist

Signed-off-by: Alberto Murillo <albertomurillosilva@gmail.com>

* os_keystone_endpoint: Fix return values

- Change type of 'endpoint' return value from dictionary to complex
  in order to get validate_module checks passed.

- Remove 'id' from the return data since it is included inside the
  'endpoint' value wich is already being returned.

- Rename 'service' field to 'service_id' which is the correct name
  for the service id field returned in json.

Signed-off-by: Alberto Murillo <albertomurillosilva@gmail.com>

* os_keystone_endpoint: Update shade version

Update minimum shade version to 1.11.0

Signed-off-by: Alberto Murillo <albertomurillosilva@gmail.com>

* os_keystone_endpoint: Make region optional

Signed-off-by: Alberto Murillo <albertomurillosilva@gmail.com>

* os_keystone_endpoint: Validate service exists before using service.id

Signed-off-by: Alberto Murillo <albertomurillosilva@gmail.com>

* os_keystone_endpoint: Fix documentation for service to accept name or id

Signed-off-by: Alberto Murillo <albertomurillosilva@gmail.com>

* os_keystone_endpoint: Pass the full service object to create_endpoint()

We already have the service object retrieved in code, by passing service.id to
create_endpoint, the shade librarie queries the api again to get the full service
object.

By Passing the already rerieved service object to create_endpoint() we save one
request to the API.

Signed-off-by: Alberto Murillo <albertomurillosilva@gmail.com>

* os_keystone_endpoint: Make type explicit in module arguments.

Althoug type is default to str when not specified in module arguments
this commit explicitly defines type='str' for better readability.

Signed-off-by: Alberto Murillo <albertomurillosilva@gmail.com>
2017-09-28 23:05:44 +02:00
..
cli fixed pull's ansible/git invocation options (#30938) 2017-09-27 19:50:36 -04:00
compat Remove wildcard imports 2017-07-28 22:10:17 -07:00
config add ability to set default tags in config 2017-09-22 19:21:13 -04:00
errors Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
executor made callbacks backwards compatible (#30625) 2017-09-20 15:20:19 -04:00
galaxy Removes container-enabled warning (#27578) 2017-08-01 12:51:03 -04:00
inventory use set to quicken group host membership 2017-09-22 19:07:37 -04:00
module_utils Fix fact failures cause by ordering of collectors (#30777) 2017-09-28 10:36:22 -04:00
modules os_keystone_endpoint.py (#29031) 2017-09-28 23:05:44 +02:00
parsing Use vault_id when encrypted via vault-edit (#30772) 2017-09-26 12:28:31 -04:00
playbook avoid include_Xs conflating vars with options (#30954) 2017-09-27 19:53:10 -04:00
plugins Add alias to command option in telnet (#30825) 2017-09-28 18:07:37 +05:30
template Fix dangerous default args. (#29839) 2017-09-12 00:11:13 -07:00
utils Fix encoding error with path to ssh 2017-09-22 15:31:21 -07:00
vars remove fact namespacing 2017-09-10 17:37:52 -04:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py moved from eval to templating + literal_eval 2017-09-20 21:35:02 -04:00
release.py Bump the versions now that devel is 2.5 2017-09-06 13:13:57 -07:00