| Luigi Toscano | 6fba3fd | 2020-08-18 22:29:49 +0200 | [diff] [blame] | 1 | Reads the OS_* variables set by devstack through openrc | 
|  | 2 | for the specified user and project and exports them as | 
|  | 3 | the os_env_vars fact. | 
|  | 4 |  | 
|  | 5 | **WARNING**: this role is meant to be used as porting aid | 
|  | 6 | for the non-unified python-<service>client jobs which | 
|  | 7 | are already around, as those clients do not use clouds.yaml | 
|  | 8 | as openstackclient does. | 
|  | 9 | When those clients and their jobs are deprecated and removed, | 
|  | 10 | or anyway when the new code is able to read from clouds.yaml | 
|  | 11 | directly, this role should be removed as well. | 
|  | 12 |  | 
|  | 13 |  | 
|  | 14 | **Role Variables** | 
|  | 15 |  | 
|  | 16 | .. zuul:rolevar:: devstack_base_dir | 
|  | 17 | :default: /opt/stack | 
|  | 18 |  | 
|  | 19 | The devstack base directory. | 
|  | 20 |  | 
|  | 21 | .. zuul:rolevar:: openrc_file | 
|  | 22 | :default: {{ devstack_base_dir }}/devstack/openrc | 
|  | 23 |  | 
|  | 24 | The location of the generated openrc file. | 
|  | 25 |  | 
|  | 26 | .. zuul:rolevar:: openrc_user | 
|  | 27 | :default: admin | 
|  | 28 |  | 
|  | 29 | The user whose credentials should be retrieved. | 
|  | 30 |  | 
|  | 31 | .. zuul:rolevar:: openrc_project | 
|  | 32 | :default: admin | 
|  | 33 |  | 
|  | 34 | The project (which openrc_user is part of) whose | 
|  | 35 | access data should be retrieved. | 
|  | 36 |  | 
|  | 37 | .. zuul:rolevar:: openrc_enable_export | 
|  | 38 | :default: false | 
|  | 39 |  | 
|  | 40 | Set it to true to export os_env_vars. |