//Module included in the following assemblies:
//
// * installing/installing_openstack/installing-openstack-installer.adoc
// * installing/installing_openstack/installing-openstack-installer-custom.adoc
// * installing/installing_openstack/installing-openstack-installer-kuryr.adoc

[id="installation-osp-enabling-swift_{context}"]
= Enabling Swift on OpenStack

{product-title} on {rh-openstack-first} uses https://docs.openstack.org/security-guide/object-storage.html[OpenStack Object Storage (Swift)] to store and serve user configuration files.

Swift is operated by a user account with the `swiftoperator` role and `temp-url` support.

.Prerequisites

* A {rh-openstack} administrator account on the target environment
* On Ceph RGW, https://docs.ceph.com/docs/master/radosgw/config-ref/#swift-settings[the `account in url` option must be enabled]

.Procedure

To enable Swift on {rh-openstack}:

. As an administrator in the {rh-openstack} CLI, add the `swiftoperator` role to the account that will access Swift:
+
----
$ openstack role add --user <user> --project <project> swiftoperator
----
. As the account with the `swiftoperator` role, set a temporary URL property for the account:
+
----
$ openstack object store account set --property Temp-URL-Key=superkey
----

Your {rh-openstack} deployment can now use Swift to store and serve files.

//Module included in the following assemblies:
//
// * installing/installing_openstack/installing-openstack-installer.adoc
// * installing/installing_openstack/installing-openstack-installer-custom.adoc
// * installing/installing_openstack/installing-openstack-installer-kuryr.adoc

[id="installation-osp-enabling-swift_{context}"]
= Enabling Swift on OpenStack

{product-title} on {rh-openstack-first} uses https://docs.openstack.org/security-guide/object-storage.html[OpenStack Object Storage (Swift)] to store and serve user configuration files.

Swift is operated by a user account with the `swiftoperator` role.

.Prerequisites

* A {rh-openstack} administrator account on the target environment
* On Ceph RGW, https://docs.ceph.com/docs/master/radosgw/config-ref/#swift-settings[the `account in url` option must be enabled]

.Procedure

To enable Swift on {rh-openstack}:

. As an administrator in the {rh-openstack} CLI, add the `swiftoperator` role to the account that will access Swift:
+
----
$ openstack role add --user <user> --project <project> swiftoperator
----

Your {rh-openstack} deployment can now use Swift to store and serve files.

Remove Temp-URL step from Swift procedure - BZ 1805176
Remove Temp-URL step from Swift procedure - BZ 1805176
