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

variables: sync with ansible_hostname ansible fact #907

Merged
merged 1 commit into from Feb 16, 2018
Merged

Conversation

guits
Copy link
Collaborator

@guits guits commented Feb 16, 2018

given that we rely in many place to the {{ ansible_hostname }} fact in
ceph-ansible, we have to ensure $HOSTNAME will match it.
That fact relies on a uname -n [1], then it splits the string by '.'
and pick the first element.

[1] https://github.com/ansible/ansible/blob/6e585bdf247439cc820921b9f57206afcef61f03/lib/ansible/module_utils/facts/system/platform.py#L51

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1546127

Signed-off-by: Guillaume Abrioux gabrioux@redhat.com

given that we rely in many place to the `{{ ansible_hostname }}` fact in
ceph-ansible, we have to ensure `$HOSTNAME` will match it.
That fact relies on a `uname -n` [1], then it splits the string by '.'
and pick the first element.

[1] https://github.com/ansible/ansible/blob/6e585bdf247439cc820921b9f57206afcef61f03/lib/ansible/module_utils/facts/system/platform.py#L51

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1546127

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
@guits guits requested a review from leseb February 16, 2018 14:43
@leseb leseb merged commit 3ac41d5 into master Feb 16, 2018
@leseb leseb deleted the fix_host_issue branch February 16, 2018 16:12
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.

None yet

2 participants