Skip to content

Commit e4a806e

Browse files
committed
configure_swift_rgw_post_adopiton
1 parent 89f1ec7 commit e4a806e

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ test-with-ironic: ## Launch test suite with Ironic
9595
mkdir -p tests/logs
9696
ANSIBLE_CONFIG=$(TEST_CONFIG) ansible-playbook -v -i $(TEST_INVENTORY) -e @$(TEST_SECRETS) -e @$(TEST_VARS) $(TEST_ARGS) tests/playbooks/test_with_ironic.yaml 2>&1 | tee $(TEST_OUTFILE)
9797

98+
test-configure-object: TEST_OUTFILE ?= tests/logs/test_configure_object_out_$(shell date +%FT%T%Z).log
99+
test-configure-object: ## Configure Swift object store to use Ceph RGW
100+
mkdir -p tests/logs
101+
ANSIBLE_CONFIG=$(TEST_CONFIG) ansible-playbook -v -i $(TEST_INVENTORY) -e @$(TEST_SECRETS) -e @$(TEST_VARS) $(TEST_ARGS) tests/playbooks/configure_swift_rgw.yaml 2>&1 | tee $(TEST_OUTFILE)
102+
98103
##@ DOCS
99104

100105
docs-dependencies: .bundle
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
- name: Configure Ceph RGW Keystone settings
3+
hosts: "{{ groups['ceph'][0] | default([]) }}"
4+
gather_facts: true
5+
tasks:
6+
- name: Configure Ceph RGW Keystone settings
7+
ansible.builtin.shell: |
8+
sudo cephadm shell -- ceph config set global rgw_keystone_url {{ ceph_keystone_ep }}
9+
sudo cephadm shell -- ceph config set global rgw_keystone_admin_password {{ ceph_keystone_swift_pwd }}
10+
# refresh rgw after updating keystone rgw config
11+
sudo cephadm shell -- ceph orch redeploy rgw.rgw
12+
changed_when: true
13+
14+
- name: Configure swift object store
15+
hosts: localhost
16+
gather_facts: true
17+
vars:
18+
shell_header: "set -euo pipefail"
19+
tasks:
20+
- name: Configure swift endpoints to use rgw
21+
ansible.builtin.import_role:
22+
name: ceph_migrate
23+
tasks_from: configure_object

0 commit comments

Comments
 (0)