Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
test / debug / dnm

Signed-off-by: Guillaume Abrioux <[email protected]>
  • Loading branch information
guits committed Mar 14, 2024
1 parent c88869e commit dfe3ab5
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 21 deletions.
21 changes: 0 additions & 21 deletions roles/ceph-handler/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,24 +70,3 @@
or inventory_hostname in groups.get(rgw_group_name, [])
or inventory_hostname in groups.get(rbdmirror_group_name, [])

Check failure on line 72 in roles/ceph-handler/handlers/main.yml

View workflow job for this annotation

GitHub Actions / build

yaml[empty-lines]

Too many blank lines (1 > 0)
- name: Remove tempdir for scripts
ansible.builtin.file:
path: "{{ tmpdirpath.path }}"
state: absent
listen:
- "Restart ceph mons"
- "Restart ceph osds"
- "Restart ceph mdss"
- "Restart ceph rgws"
- "Restart ceph rbdmirrors"
- "Restart ceph mgrs"
when:
- tmpdirpath.path is defined
- not _exporter_handler_called | default(false) | bool
- not _crash_handler_called | default(false) | bool
- not _mds_handler_called | default(false) | bool
- not _mgr_handler_called | default(false) | bool
- not _mon_handler_called | default(false) | bool
- not _osd_handler_called | default(false) | bool
- not _rbdmirror_handler_called | default(false) | bool
- not _rgw_handler_called | default(false) | bool
29 changes: 29 additions & 0 deletions site-container.yml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,35 @@
status: "Complete"
end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"

- hosts:
- mons
- osds
- mdss
- rgws
- rbdmirrors
- clients
- mgrs
- monitoring
gather_facts: false
become: True
any_errors_fatal: true
tasks:
- name: Remove tempdir for scripts
ansible.builtin.file:
path: "{{ tmpdirpath.path }}"
state: absent
when:
- tmpdirpath.path is defined
- not _exporter_handler_called | default(false) | bool
- not _crash_handler_called | default(false) | bool
- not _mds_handler_called | default(false) | bool
- not _mgr_handler_called | default(false) | bool
- not _mon_handler_called | default(false) | bool
- not _osd_handler_called | default(false) | bool
- not _rbdmirror_handler_called | default(false) | bool
- not _rgw_handler_called | default(false) | bool


- hosts: mons[0]
gather_facts: false
become: True
Expand Down
28 changes: 28 additions & 0 deletions site.yml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,34 @@
status: "Complete"
end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"

- hosts:
- mons
- osds
- mdss
- rgws
- rbdmirrors
- clients
- mgrs
- monitoring
gather_facts: false
become: True
any_errors_fatal: true
tasks:
- name: Remove tempdir for scripts
ansible.builtin.file:
path: "{{ tmpdirpath.path }}"
state: absent
when:
- tmpdirpath.path is defined
- not _exporter_handler_called | default(false) | bool
- not _crash_handler_called | default(false) | bool
- not _mds_handler_called | default(false) | bool
- not _mgr_handler_called | default(false) | bool
- not _mon_handler_called | default(false) | bool
- not _osd_handler_called | default(false) | bool
- not _rbdmirror_handler_called | default(false) | bool
- not _rgw_handler_called | default(false) | bool

- hosts: mons
gather_facts: false
become: True
Expand Down

0 comments on commit dfe3ab5

Please sign in to comment.