aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/openstack_mitaka_xenial/roles/swift
diff options
context:
space:
mode:
authorchenshuai@huawei.com <chenshuai@huawei.com>2016-07-28 22:30:44 -0400
committerchenshuai@huawei.com <chenshuai@huawei.com>2016-07-29 00:25:06 -0400
commita15266e43031c9b7f4366c84b5ae6a26dbb30d47 (patch)
tree355cd5cec664cb79698209f298ec689aec9f6956 /deploy/adapters/ansible/openstack_mitaka_xenial/roles/swift
parent26c7dfdd7300b99c00b97acbf90f96648acd278b (diff)
bugfix: swift ha configuration
JIRA: COMPASS-445 Change-Id: I2c2a948ba4bf63311ef23961993881c18a06bab0 Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/openstack_mitaka_xenial/roles/swift')
-rw-r--r--deploy/adapters/ansible/openstack_mitaka_xenial/roles/swift/files/swift-lib.tar.gzbin0 -> 499553 bytes
-rw-r--r--deploy/adapters/ansible/openstack_mitaka_xenial/roles/swift/tasks/main.yml6
-rw-r--r--deploy/adapters/ansible/openstack_mitaka_xenial/roles/swift/tasks/swift-compute1.yml8
3 files changed, 14 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/openstack_mitaka_xenial/roles/swift/files/swift-lib.tar.gz b/deploy/adapters/ansible/openstack_mitaka_xenial/roles/swift/files/swift-lib.tar.gz
new file mode 100644
index 00000000..fdbb38fd
--- /dev/null
+++ b/deploy/adapters/ansible/openstack_mitaka_xenial/roles/swift/files/swift-lib.tar.gz
Binary files differ
diff --git a/deploy/adapters/ansible/openstack_mitaka_xenial/roles/swift/tasks/main.yml b/deploy/adapters/ansible/openstack_mitaka_xenial/roles/swift/tasks/main.yml
index b50126ae..71d54546 100644
--- a/deploy/adapters/ansible/openstack_mitaka_xenial/roles/swift/tasks/main.yml
+++ b/deploy/adapters/ansible/openstack_mitaka_xenial/roles/swift/tasks/main.yml
@@ -35,3 +35,9 @@
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']
diff --git a/deploy/adapters/ansible/openstack_mitaka_xenial/roles/swift/tasks/swift-compute1.yml b/deploy/adapters/ansible/openstack_mitaka_xenial/roles/swift/tasks/swift-compute1.yml
index 06711d3c..8e337163 100644
--- a/deploy/adapters/ansible/openstack_mitaka_xenial/roles/swift/tasks/swift-compute1.yml
+++ b/deploy/adapters/ansible/openstack_mitaka_xenial/roles/swift/tasks/swift-compute1.yml
@@ -64,3 +64,11 @@
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/;
+