File: tempest

package info (click to toggle)
barbican 1%3A20.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 4,472 kB
  • sloc: python: 41,218; sh: 911; makefile: 80
file content (16 lines) | stat: -rw-r--r-- 537 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function configure_barbican_tempest() {

    iniset $TEMPEST_CONFIG service_available barbican True
    iniset $TEMPEST_CONFIG enforce_scope barbican $BARBICAN_ENFORCE_SCOPE

    if [[ "$BARBICAN_ENFORCE_SCOPE" == "False" ]]; then
        # NOTE: legacy policies require the "creator" role
        roles="$(iniget $TEMPEST_CONFIG auth tempest_roles)"
        if [[ -z $roles ]]; then
            roles="creator"
        else
            roles="$roles,creator"
        fi
        iniset $TEMPEST_CONFIG auth tempest_roles $roles
    fi
}