Skip to content
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

fix for case when interface nmes vary #107

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stuartc-graphcore
Copy link

No description provided.

@stuartc-graphcore stuartc-graphcore requested a review from a team as a code owner June 27, 2023 15:25
@mnasiadka
Copy link
Member

Fixing linter in #108

@mnasiadka
Copy link
Member

Linter fixed - please rebase the patch

Copy link
Member

@priteau priteau left a comment

Choose a reason for hiding this comment

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

Nit: s/nmes/names/ in commit message

@@ -3,7 +3,7 @@
service_type: host
hostname: {{ hostvars[host].ansible_facts.hostname }}
{% set cephadm_admin_interface = hostvars[host]['cephadm_admin_interface'] %}
addr: {{ hostvars[host]['ansible_facts'][cephadm_admin_interface]['ipv4']['address'] }}
addr: {{ hostvars[host]['ansible_all_ipv4_addresses'] | ipaddr( cephadm_public_network ) | first }}

Choose a reason for hiding this comment

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

Need to use ansible_facts.

Suggested change
addr: {{ hostvars[host]['ansible_all_ipv4_addresses'] | ipaddr( cephadm_public_network ) | first }}
addr: {{ hostvars[host]['ansible_facts']['all_ipv4_addresses'] | ipaddr( cephadm_public_network ) | first }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants