JIRA: COMPASS-445
Change-Id: I2c2a948ba4bf63311ef23961993881c18a06bab0
Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
listen proxy-swift-proxy
bind {{ internal_vip.ip }}:8080
bind {{ public_vip.ip }}:8080
- mode tcp
- option httpchk
- option tcplog
- balance source
+ balance source
+ option tcpka
+ option tcplog
{% for host,ip in haproxy_hosts.items() %}
server {{ host }} {{ ip }}:8080 weight 1 check inter 2000 rise 2 fall 5
{% endfor %}
shell: swift-init all start
when: inventory_hostname in groups['compute']
ignore_errors: True
+
+- name: restart tasks on controller
+ service: name={{ item }} state=restarted enabled=yes
+ with_items:
+ - rsync
+ when: inventory_hostname in groups['compute']
chown -R root:swift /var/cache/swift;
chmod -R 775 /var/cache/swift;
+- name: copy swift lib
+ copy: src=swift-lib.tar.gz dest=/tmp/swift-lib.tar.gz
+
+- name: untar swift lib
+ shell: >
+ tar zxf /tmp/swift-lib.tar.gz;
+ cp /tmp/swift-lib/* /usr/lib/;
+