Change-Id: I9eb8c004e100b16de906d340b54e154cf21ddaab Signed-off-by: Thiago da Silva <thiago@redhat.com>
3.4 KiB
Finalize installation for Red Hat Enterprise Linux and CentOS
Note
Default configuration files vary by distribution. You might need to
add these sections and options rather than modifying existing sections
and options. Also, an ellipsis (...) in the configuration
snippets indicates potential default configuration options that you
should retain.
This section applies to Red Hat Enterprise Linux 7 and CentOS 7.
Obtain the
/etc/swift/swift.conffile from the Object Storage source repository:# curl -o /etc/swift/swift.conf \ https://git.openstack.org/cgit/openstack/swift/plain/etc/swift.conf-sample?h=stable/newtonEdit the
/etc/swift/swift.conffile and complete the following actions:In the
[swift-hash]section, configure the hash path prefix and suffix for your environment.[swift-hash] ... swift_hash_path_suffix = HASH_PATH_SUFFIX swift_hash_path_prefix = HASH_PATH_PREFIXReplace HASH_PATH_PREFIX and HASH_PATH_SUFFIX with unique values.
Warning
Keep these values secret and do not change or lose them.
In the
[storage-policy:0]section, configure the default storage policy:[storage-policy:0] ... name = Policy-0 default = yes
Copy the
swift.conffile to the/etc/swiftdirectory on each storage node and any additional nodes running the proxy service.On all nodes, ensure proper ownership of the configuration directory:
# chown -R root:swift /etc/swiftOn the controller node and any other nodes running the proxy service, start the Object Storage proxy service including its dependencies and configure them to start when the system boots:
# systemctl enable openstack-swift-proxy.service memcached.service # systemctl start openstack-swift-proxy.service memcached.serviceOn the storage nodes, start the Object Storage services and configure them to start when the system boots:
# systemctl enable openstack-swift-account.service openstack-swift-account-auditor.service \ openstack-swift-account-reaper.service openstack-swift-account-replicator.service # systemctl start openstack-swift-account.service openstack-swift-account-auditor.service \ openstack-swift-account-reaper.service openstack-swift-account-replicator.service # systemctl enable openstack-swift-container.service \ openstack-swift-container-auditor.service openstack-swift-container-replicator.service \ openstack-swift-container-updater.service # systemctl start openstack-swift-container.service \ openstack-swift-container-auditor.service openstack-swift-container-replicator.service \ openstack-swift-container-updater.service # systemctl enable openstack-swift-object.service openstack-swift-object-auditor.service \ openstack-swift-object-replicator.service openstack-swift-object-updater.service # systemctl start openstack-swift-object.service openstack-swift-object-auditor.service \ openstack-swift-object-replicator.service openstack-swift-object-updater.service