Michel Nederlof | 3a86781 | 2017-05-15 09:46:11 +0200 | [diff] [blame] | 1 | {%- from "glance/map.jinja" import server with context %} |
| 2 | |
Benjamin Drung | 35de764 | 2018-02-14 23:54:30 +0100 | [diff] [blame] | 3 | {% for reference_key, reference in server.storage.get('swift', {}).get('store', {}).get('references', {}).items() %} |
Michel Nederlof | 3a86781 | 2017-05-15 09:46:11 +0200 | [diff] [blame] | 4 | [{{ reference_key }}] |
| 5 | # A project_name user_name pair in the project_name:user_name format to authenticate against the Swift authentication service. |
| 6 | user = {{ reference.user }} |
| 7 | |
| 8 | # An authentication key for a user authenticating against the Swift authentication service. |
| 9 | key = {{ reference.key }} |
| 10 | |
| 11 | # An address where the Swift authentication service is located. |
| 12 | auth_address = {{ reference.auth.address }} |
| 13 | |
| 14 | # A version of the authentication service to use. Valid versions are 2 and 3 for Keystone and 1 (deprecated) for Swauth and Rackspace. |
| 15 | # Optional. Default: 2 |
| 16 | auth_version = {{ reference.auth.get('version', '2') }} |
| 17 | |
| 18 | {%- if reference.project_domain_id is defined %} |
| 19 | # A domain ID of the project which is the requested project-level authorization scope. |
| 20 | # Optional. Default: None |
| 21 | # This option can be specified if ``auth_version` is 3 .` |
| 22 | project_domain_id = {{ reference.project_domain_id }} |
| 23 | {% endif %} |
| 24 | |
| 25 | {%- if reference.project_domain_name is defined %} |
| 26 | # A domain name of the project which is the requested project-level authorization scope. |
| 27 | # Optional. Default: None |
| 28 | # This option can be specified if ``auth_version` is 3 .` |
| 29 | project_domain_name = {{ reference.project_domain_name }} |
| 30 | {% endif %} |
| 31 | |
| 32 | {%- if reference.user_domain_id is defined %} |
| 33 | # A domain ID of the user which is the requested domain-level authorization scope. |
| 34 | # Optional. Default: None |
| 35 | # This option can be specified if ``auth_version` is 3 .` |
| 36 | user_domain_id = {{ reference.user_domain_id }} |
| 37 | {% endif %} |
| 38 | |
| 39 | {%- if reference.user_domain_name is defined %} |
| 40 | # A domain name of the user which is the requested domain-level authorization scope. |
| 41 | # Optional. Default: None |
| 42 | # This option can be specified if ``auth_version` is 3. ` |
| 43 | user_domain_name = {{ reference.user_domain_name }} |
| 44 | {% endif %} |
| 45 | |
| 46 | {% endfor %} |