From 09f4c51f9fd5838d7c4c8995703e698fe63c6e7b Mon Sep 17 00:00:00 2001 From: Kevin Jones Date: Wed, 27 Jun 2018 08:26:03 -0400 Subject: [PATCH] [openstack] add endpoint_type parameter to examples (#41979) Certain project functions are not available on the openstack public api. Creating and deleting projects are examples where you must use the admin api. In most devstack or simple openstack deployments the public, internal and admin apis may live at the IP. However in most production deployments the admin APIs are on a separate network than the public APIs. Therefore for these examples to consistently work, we must specify the admin endpoint_type. --- lib/ansible/modules/cloud/openstack/os_project.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/modules/cloud/openstack/os_project.py b/lib/ansible/modules/cloud/openstack/os_project.py index b0eead8ff3..a68becb0a6 100644 --- a/lib/ansible/modules/cloud/openstack/os_project.py +++ b/lib/ansible/modules/cloud/openstack/os_project.py @@ -58,6 +58,7 @@ EXAMPLES = ''' # Create a project - os_project: cloud: mycloud + endpoint_type: admin state: present name: demoproject description: demodescription @@ -67,6 +68,7 @@ EXAMPLES = ''' # Delete a project - os_project: cloud: mycloud + endpoint_type: admin state: absent name: demoproject '''