Skip to content

fix for case when interface nmes vary#107

Open
stuartc-graphcore wants to merge 1 commit into
stackhpc:masterfrom
stuartc-graphcore:netif_name_workaround
Open

fix for case when interface nmes vary#107
stuartc-graphcore wants to merge 1 commit into
stackhpc:masterfrom
stuartc-graphcore:netif_name_workaround

Conversation

@stuartc-graphcore

Copy link
Copy Markdown

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
Copy Markdown
Member

Fixing linter in #108

@mnasiadka

Copy link
Copy Markdown
Member

Linter fixed - please rebase the patch

@priteau priteau left a comment

Copy link
Copy Markdown
Member

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

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 }}

Copy link
Copy Markdown

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.

5 participants