summaryrefslogtreecommitdiff
path: root/doc/source/install/controller-include.txt
blob: 779b2fa7e9829daf3e146c0d1040daf5f6ffb320 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
Edit the ``/etc/swift/proxy-server.conf`` file and complete the
following actions:

* In the ``[DEFAULT]`` section, configure the bind port, user, and
  configuration directory:

  .. code-block:: none

     [DEFAULT]
     ...
     bind_port = 8080
     user = swift
     swift_dir = /etc/swift

* In the ``[pipeline:main]`` section, remove the ``tempurl`` and
  ``tempauth`` modules and add the ``authtoken`` and ``keystoneauth``
  modules:

  .. code-block:: none

     [pipeline:main]
     pipeline = catch_errors gatekeeper healthcheck proxy-logging cache container_sync bulk ratelimit authtoken keystoneauth container-quotas account-quotas slo dlo versioned_writes proxy-logging proxy-server

  .. note::

     Do not change the order of the modules.

  .. note::

     For more information on other modules that enable additional features,
     see the `Deployment Guide <https://docs.openstack.org/swift/latest/deployment_guide.html>`__.

* In the ``[app:proxy-server]`` section, enable automatic account creation:

  .. code-block:: console

     [app:proxy-server]
     use = egg:swift#proxy
     ...
     account_autocreate = True

* In the ``[filter:keystoneauth]`` section, configure the operator roles:

  .. code-block:: console

     [filter:keystoneauth]
     use = egg:swift#keystoneauth
     ...
     operator_roles = admin,user

* In the ``[filter:authtoken]`` section, configure Identity service access:

  .. code-block:: none

     [filter:authtoken]
     paste.filter_factory = keystonemiddleware.auth_token:filter_factory
     ...
     www_authenticate_uri = http://controller:5000
     auth_url = http://controller:35357
     memcached_servers = controller:11211
     auth_type = password
     project_domain_id = default
     user_domain_id = default
     project_name = service
     username = swift
     password = SWIFT_PASS
     delay_auth_decision = True

  Replace ``SWIFT_PASS`` with the password you chose for the ``swift`` user
  in the Identity service.

  .. note::

     Comment out or remove any other options in the ``[filter:authtoken]``
     section.

* In the ``[filter:cache]`` section, configure the ``memcached`` location:

  .. code-block:: none

     [filter:cache]
     use = egg:swift#memcache
     ...
     memcache_servers = controller:11211