Configures swift-rsyncd to use non-default port

This PS configures swift-rsyncd process to use non-default port
from the range above 1024.

Change-Id: I7c37c548a5185a2ffac789383fe012619e401131
Closes-Bug: #1573137
This commit is contained in:
Serguei Bezverkhi 2016-04-21 12:47:15 -04:00
parent a861450fd2
commit d553514cb7
8 changed files with 9 additions and 4 deletions

View File

@ -124,6 +124,7 @@ swift_proxy_server_port: "8080"
swift_object_server_port: "6000"
swift_account_server_port: "6001"
swift_container_server_port: "6002"
swift_rsync_port: "10873"
heat_api_port: "8004"
heat_api_cfn_port: "8000"

View File

@ -20,6 +20,7 @@ use = egg:swift#account
{% if service_name == 'swift-account-replicator' %}
[account-replicator]
sync_module = {replication_ip}:{meta}:account
{% endif %}
{% if service_name == 'swift-account-reaper' %}

View File

@ -20,6 +20,7 @@ use = egg:swift#container
{% if service_name == 'swift-container-replicator' %}
[container-replicator]
sync_module = {replication_ip}:{meta}:container
{% endif %}
{% if service_name == 'swift-container-updater' %}

View File

@ -25,6 +25,7 @@ use = egg:swift#object
{% if service_name == 'swift-object-replicator' %}
[object-replicator]
sync_module = {replication_ip}:{meta}:object
{% endif %}
{% if service_name == 'swift-object-updater' %}

View File

@ -1,5 +1,5 @@
{
"command": "/usr/bin/rsync --daemon --no-detach --config=/etc/rsyncd.conf",
"command": "/usr/bin/rsync --daemon --no-detach --port={{swift_rsync_port}} --config=/etc/rsyncd.conf",
"config_files": [
{
"source": "{{ container_config_directory }}/rsyncd.conf",

View File

@ -1 +1,3 @@
swift ALL = (root) NOPASSWD: /var/lib/kolla/venv/bin/swift-rootwrap /etc/swift/rootwrap.conf *
swift ALL=(root) NOPASSWD: /bin/chown -R swift\:swift /srv/node
swift ALL=(root) NOPASSWD: /usr/bin/chown -R swift\:swift /srv/node
swift ALL=(root) NOPASSWD: /var/lib/kolla/venv/bin/swift-rootwrap /etc/swift/rootwrap.conf *

View File

@ -15,7 +15,6 @@ RUN apt-get install -y --no-install-recommends \
{% endif %}
RUN setcap 'cap_net_bind_service=+ep' /usr/bin/rsync
COPY extend_start.sh /usr/local/bin/kolla_extend_start
RUN chmod 755 /usr/local/bin/kolla_extend_start

View File

@ -1,3 +1,3 @@
#!/bin/bash
chown -R swift: /srv/node
sudo chown -R swift:swift /srv/node