Skip to content

Override bootstrap host assuming mon[0] is available #109

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion roles/commands/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
changed_when: true
when: cephadm_commands | length > 0

delegate_to: "{{ groups['mons'][0] }}"
delegate_to: "{{ cephadm_bootstrap_host }}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Each of these roles will need a default for this variable.

I wonder how appropriate the name is, since these roles will execute after bootstrap is complete. How about cephadm_delegate_host?

run_once: true
2 changes: 1 addition & 1 deletion roles/crush_rules/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
device_class: "{{ item.device_class | default(omit) }}"
profile: "{{ item.profile | default(omit) }}"
with_items: "{{ cephadm_crush_rules }}"
delegate_to: "{{ groups['mons'][0] }}"
delegate_to: "{{ cephadm_bootstrap_host }}"
run_once: true
2 changes: 1 addition & 1 deletion roles/ec_profiles/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
crush_root: "{{ item.crush_root | default(omit) }}"
crush_device_class: "{{ item.crush_device_class | default(omit) }}"
with_items: "{{ cephadm_ec_profiles }}"
delegate_to: "{{ groups['mons'][0] }}"
delegate_to: "{{ cephadm_bootstrap_host }}"
run_once: true
2 changes: 1 addition & 1 deletion roles/keys/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
caps: "{{ item.caps }}"
secret: "{{ item.key | default(omit) }}"
with_items: "{{ cephadm_keys }}"
delegate_to: "{{ groups['mons'][0] }}"
delegate_to: "{{ cephadm_bootstrap_host }}"
run_once: true
2 changes: 1 addition & 1 deletion roles/pools/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
application: "{{ item.application | default(omit) }}"
allow_ec_overwrites: "{{ item.allow_ec_overwrites | default(omit) }}"
with_items: "{{ cephadm_pools }}"
delegate_to: "{{ groups['mons'][0] }}"
delegate_to: "{{ cephadm_bootstrap_host }}"
run_once: true