Skip to content

Commit

Permalink
Merge branch 'release/4.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
hswong3i committed Apr 22, 2020
2 parents c61c76c + f7429dd commit a6d01ec
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 26 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ env:

jobs:
allow_failures:
- env: MOLECULE_SCENARIO_NAME="ubuntu-20.04"
- env: MOLECULE_SCENARIO_NAME="ubuntu-19.10"
- env: MOLECULE_SCENARIO_NAME="centos-8"
- env: MOLECULE_SCENARIO_NAME="centos-7"
Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# limitations under the License.

# Ceph version.
ceph_release: "14.2"
ceph_release: "15.2"

# Ceph rgw configs.
ceph_rgw_config:
Expand Down
2 changes: 1 addition & 1 deletion handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
changed_when: false
ignore_errors: true

- name: ceph_rgw | systemctl restart
- name: ceph_rgw | systemctl restart ceph-radosgw.target
service:
name: "ceph-radosgw.target"
state: "restarted"
Expand Down
2 changes: 1 addition & 1 deletion molecule/default/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM ubuntu:18.04
FROM ubuntu:20.04

ENV LANG "en_US.utf8"
ENV LC_ALL "en_US.utf8"
Expand Down
2 changes: 1 addition & 1 deletion molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ platforms:
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
entrypoint: init
command: "bash -c 'sleep infinity'"
tty: True
tty: true
env:
container: docker
lint: |
Expand Down
6 changes: 3 additions & 3 deletions molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
- name: ceph osd pool create rbd
shell: |
set -o pipefail
ceph osd pool create rbd 8 8
ceph osd pool create rbd
ceph osd pool set rbd size 1
ceph osd pool set rbd min_size 1
ceph osd pool application enable rbd rbd
Expand All @@ -80,7 +80,7 @@
- name: ceph osd pool create cephfs_metadata
shell: |
set -o pipefail
ceph osd pool create cephfs_metadata 32 32
ceph osd pool create cephfs_metadata
ceph osd pool set cephfs_metadata size 1
ceph osd pool set cephfs_metadata min_size 1
args:
Expand All @@ -92,7 +92,7 @@
- name: ceph osd pool create cephfs_data
shell: |
set -o pipefail
ceph osd pool create cephfs_data 128 128
ceph osd pool create cephfs_data
ceph osd pool set cephfs_data size 1
ceph osd pool set cephfs_data min_size 1
args:
Expand Down
4 changes: 2 additions & 2 deletions molecule/ubuntu-20.04/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ driver:
name: libvirt
platforms:
- name: ${MOLECULE_INSTANCE_NAME}-1
box: generic/ubuntu2004
box: abi/ubuntu2004
cpu: 2
memory: 2048
interfaces:
Expand All @@ -37,7 +37,7 @@ platforms:
- ceph_mgr
- ceph_osd
- name: ${MOLECULE_INSTANCE_NAME}-2
box: generic/ubuntu2004
box: abi/ubuntu2004
cpu: 2
memory: 2048
interfaces:
Expand Down
2 changes: 1 addition & 1 deletion tasks/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
register: result
until: result is succeeded
notify:
- ceph_rgw | systemctl restart
- ceph_rgw | systemctl restart ceph-radosgw.target
tags: ceph_rgw
30 changes: 18 additions & 12 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
state: "{{ item.state | default('present') }}"
loop: "{{ ceph_rgw_config }}"
notify:
- ceph_rgw | systemctl restart
- ceph_rgw | systemctl restart ceph-radosgw.target
tags: ceph_rgw

- name: prepare files
Expand All @@ -95,7 +95,7 @@
loop:
- { dest: "/etc/ceph/ceph.conf", owner: "ceph", group: "ceph" }
notify:
- ceph_rgw | systemctl restart
- ceph_rgw | systemctl restart ceph-radosgw.target
tags: ceph_rgw

- name: create manager keyring
Expand All @@ -114,7 +114,7 @@
register: result
changed_when: result is not succeeded
notify:
- ceph_rgw | systemctl restart
- ceph_rgw | systemctl restart ceph-radosgw.target
tags: ceph_rgw

- name: copy templates
Expand All @@ -128,7 +128,7 @@
- { dest: "/lib/systemd/system/ceph-radosgw@.service" }
notify:
- ceph_rgw | systemctl daemon-reload
- ceph_rgw | systemctl restart
- ceph_rgw | systemctl restart ceph-radosgw.target
tags: ceph_rgw

- name: prepare files
Expand All @@ -142,21 +142,27 @@
- { dest: "/lib/systemd/system/ceph-radosgw@.service" }
- { dest: "/var/lib/ceph/radosgw/ceph-rgw.{{ ansible_hostname }}/keyring", owner: "ceph", group: "ceph", mode: "0600" }
notify:
- ceph_rgw | systemctl restart
- ceph_rgw | systemctl restart ceph-radosgw.target
tags: ceph_rgw

- name: flush handlers
meta: flush_handlers
- name: "systemctl start ceph-radosgw@rgw.{{ ansible_hostname }}"
service:
name: "ceph-radosgw@rgw.{{ ansible_hostname }}"
state: "started"
enabled: true
changed_when: false
ignore_errors: true
tags: ceph_rgw

- name: start services
- name: systemctl start ceph-radosgw.target
service:
name: "{{ item.name }}"
name: "ceph-radosgw.target"
state: "started"
enabled: true
loop:
- { name: "ceph-radosgw.target" }
- { name: "ceph-radosgw@rgw.{{ ansible_hostname }}" }
changed_when: false
ignore_errors: true
tags: ceph_rgw

- name: flush handlers
meta: flush_handlers
tags: ceph_rgw
2 changes: 1 addition & 1 deletion tasks/redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
register: result
until: result is succeeded
notify:
- ceph_rgw | systemctl restart
- ceph_rgw | systemctl restart ceph-radosgw.target
tags: ceph_rgw
2 changes: 1 addition & 1 deletion tasks/suse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
register: result
until: result is succeeded
notify:
- ceph_rgw | systemctl restart
- ceph_rgw | systemctl restart ceph-radosgw.target
tags: ceph_rgw
3 changes: 2 additions & 1 deletion vars/ubuntu-19.10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# limitations under the License.

_apt:
"15.2": []
"15.2":
- { state: "latest", name: "radosgw" }
"14.2":
- { state: "latest", name: "radosgw" }

0 comments on commit a6d01ec

Please sign in to comment.