[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.
This commit is contained in:
Kevin Jones 2018-06-27 08:26:03 -04:00 committed by Ryan Brown
parent d4ed572e91
commit 09f4c51f9f

View file

@ -58,6 +58,7 @@ EXAMPLES = '''
# Create a project # Create a project
- os_project: - os_project:
cloud: mycloud cloud: mycloud
endpoint_type: admin
state: present state: present
name: demoproject name: demoproject
description: demodescription description: demodescription
@ -67,6 +68,7 @@ EXAMPLES = '''
# Delete a project # Delete a project
- os_project: - os_project:
cloud: mycloud cloud: mycloud
endpoint_type: admin
state: absent state: absent
name: demoproject name: demoproject
''' '''