Add 'datacenter' keyword arg to secrets.py (#24598)

Fix adds documentation about 'datacenter' in environment variable which is required for gce.py dynamic inventory.
This commit is contained in:
Simon Wydooghe 2017-11-22 16:17:29 +01:00 committed by Abhijeet Kasurde
parent 429af90027
commit c0fced0d89

View file

@ -83,7 +83,7 @@ Create a file ``secrets.py`` looking like following, and put it in some folder w
.. code-block:: python .. code-block:: python
GCE_PARAMS = ('i...@project.googleusercontent.com', '/path/to/project.json') GCE_PARAMS = ('i...@project.googleusercontent.com', '/path/to/project.json')
GCE_KEYWORD_PARAMS = {'project': 'project_id'} GCE_KEYWORD_PARAMS = {'project': 'project_id', 'datacenter': 'gce_zone'}
Ensure to enter the email address from the created services account and not the one from your main account. Ensure to enter the email address from the created services account and not the one from your main account.