Replace swiftoperator role with swift_operator_role variable

Though a `swift_operator_role` variable exists to allow specifying an
operator role other than `swiftoperator`, it is not applied to all
uses of the role, eg the proxy-server.conf template.

Replace all remaining hard-coded references to the `swiftoperator`
role with the `swift_operator_role` variable.

Change-Id: Ie6db872cc2b7a1b1a90d9a690ee08937a9cab785
Signed-off-by: Corey Wright <corey.wright@rackspace.com>
This commit is contained in:
Corey Wright 2018-06-21 13:24:13 -05:00
parent 8cdaee5b85
commit 6654e4835d
3 changed files with 8 additions and 8 deletions

View File

@ -19,8 +19,8 @@ existing deployment.
to swift. to swift.
If this value is ``False``, by default only users with the If this value is ``False``, by default only users with the
``admin`` or ``swiftoperator`` role can create containers or ``admin`` role or role set in ``swift_operator_role`` can create
manage tenants. containers or manage tenants.
When the backend type for the glance is set to When the backend type for the glance is set to
``swift``, glance can access the swift cluster ``swift``, glance can access the swift cluster

View File

@ -34,8 +34,8 @@ usage.
to Object Storage. to Object Storage.
If this value is ``False``, then by default, only users with the If this value is ``False``, then by default, only users with the
admin or ``swiftoperator`` role are allowed to create containers or admin role or role set in ``swift_operator_role`` are allowed to
manage tenants. create containers or manage tenants.
When the backend type for the Image Service (glance) is set to When the backend type for the Image Service (glance) is set to
``swift``, glance can access the swift cluster ``swift``, glance can access the swift cluster

View File

@ -85,15 +85,15 @@ memcache_secret_key = {{ memcached_encryption_key }}
use = egg:swift#keystoneauth use = egg:swift#keystoneauth
{% if swift_allow_all_users is defined and swift_allow_all_users == True %} {% if swift_allow_all_users is defined and swift_allow_all_users == True %}
{% if 'ceilometer' in swift_middleware_list %} {% if 'ceilometer' in swift_middleware_list %}
operator_roles = admin, swiftoperator, _member_, {{ swift_reselleradmin_role }} operator_roles = admin, {{ swift_operator_role }}, _member_, {{ swift_reselleradmin_role }}
{% else %} {% else %}
operator_roles = admin, swiftoperator, _member_ operator_roles = admin, {{ swift_operator_role }}, _member_
{% endif %} {% endif %}
{% else %} {% else %}
{% if 'ceilometer' in swift_middleware_list %} {% if 'ceilometer' in swift_middleware_list %}
operator_roles = admin, swiftoperator, {{ swift_reselleradmin_role }} operator_roles = admin, {{ swift_operator_role }}, {{ swift_reselleradmin_role }}
{% else %} {% else %}
operator_roles = admin, swiftoperator operator_roles = admin, {{ swift_operator_role }}
{% endif %} {% endif %}
{% endif %} {% endif %}
# The reseller admin role has the ability to create and delete accounts # The reseller admin role has the ability to create and delete accounts