blob: 68ddce8b5a3f2c948a1802fac665df0054e1b905 [file] [log] [blame]
Luigi Toscano6fba3fd2020-08-18 22:29:49 +02001Reads the OS_* variables set by devstack through openrc
2for the specified user and project and exports them as
3the os_env_vars fact.
4
5**WARNING**: this role is meant to be used as porting aid
6for the non-unified python-<service>client jobs which
7are already around, as those clients do not use clouds.yaml
8as openstackclient does.
9When those clients and their jobs are deprecated and removed,
10or anyway when the new code is able to read from clouds.yaml
11directly, 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.