Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Fixes #62
Signed-off-by: Patrick Donnelly <[email protected]>
  • Loading branch information
batrick committed Jun 14, 2021
1 parent 9ff9877 commit 9f0152e
Showing 1 changed file with 19 additions and 23 deletions.
42 changes: 19 additions & 23 deletions cephadm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
shell: ceph config set global mon_cluster_log_to_stderr false


- hosts: mons mgrs osds mdss grafana-servers
- hosts: mons mgrs osds mdss grafana-servers clients
become: yes
tasks:
- name: fetch ceph.pub
Expand All @@ -104,11 +104,7 @@
register: myhostname

- name: add hostname to cephadm
shell: ceph orch host add "{{ myhostname.stdout }}" "{{ ansible_ssh_host }}"
delegate_to: mon-000

- name: label host
shell: ceph orch host label add "{{ myhostname.stdout }}" "{{ ceph_group }}"
shell: ceph orch host add "{{ myhostname.stdout }}" "{{ ansible_ssh_host }}" --labels {{ ceph_group }}{{ ',_no_schedule' if 'clients' in group_names else '' }}{{ ',_admin' if 'mons' in group_names else '' }}
delegate_to: mon-000

- hosts: mon-000
Expand Down Expand Up @@ -137,23 +133,23 @@
shell: ceph orch apply mds all --placement=label:mdss
when: groups['mdss'] | default([]) | length > 0

- hosts: all
become: yes
tasks:
- name: generate min config
shell: ceph config generate-minimal-conf
delegate_to: mon-000
register: minimal_config
run_once: true

- name: setup config
copy:
# yay ansible bug: https://github.com/ansible/ansible/issues/6077
content: "{{ minimal_config.stdout }}\n"
dest: /etc/ceph/ceph.conf
owner: root
group: root
mode: 0644
#- hosts: all
# become: yes
# tasks:
# - name: generate min config
# shell: ceph config generate-minimal-conf
# delegate_to: mon-000
# register: minimal_config
# run_once: true
#
# - name: setup config
# copy:
# # yay ansible bug: https://github.com/ansible/ansible/issues/6077
# content: "{{ minimal_config.stdout }}\n"
# dest: /etc/ceph/ceph.conf
# owner: root
# group: root
# mode: 0644


- hosts: clients
Expand Down

0 comments on commit 9f0152e

Please sign in to comment.