-
Notifications
You must be signed in to change notification settings - Fork 1k
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
site.yaml.sample: do not try to gather facts on "non-ceph" hosts #7459
Conversation
The site.yaml.sample make ceph-ansible tries to gather facts on group "all" which may contains hosts that have nothing to do with ceph-ansible, and/or even unreachable hosts which will make the playbook fail. This commit will replace the "all" group by "ansible_play_hosts", containing only ceph-ansible related hosts. Signed-off-by: Florent CARLI <[email protected]>
@insatomcat Your scenario isn't supported, only ceph related nodes should be in the inventory file. skipping unreachable hosts may lead to unexpected results or end users might not even notice that the playbook hasn't been run on all their hosts. Am I missing something here? |
Well my usecase is using ceph-ansible among other playbooks to setup a virtualization cluster (ceph-ansible obviously for ceph, but I also configure networking, pacemaker/corosync, libvirt, etc.). My inventory contains machines that have nothing to do with ceph (guests that will run on the cluster "later" and that are not yet existing when we deploy ceph, client "testing" machines that do not access ceph directly, etc). I find it weird that ceph-ansible has to use the "all" group, I feel it should not really be concerned of what's in the inventory if it does not belong to the groups it has to deal with. |
@insatomcat what about the similar task in |
after discussing this with @clwluvw , we came up with the idea that maybe creating a variable |
I'm not using containerized deployment so I did not hit this task, but I guess the issue is the same.
We are talking about the site sample files. The user will usually rename those files and they should work most of the time as is. Of course in my use case I have to modify the sample file. |
the issue with not using |
how so ? |
for instance, if you run the playbook with |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks if no further activity occurs. Thank you for your contributions. |
Would is be complicated to create a "ceph" group, including all other groups? and gather facts for this group? |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks if no further activity occurs. Thank you for your contributions. |
This pull request has been automatically closed due to inactivity. Please re-open if these changes are still required. |
The site.yaml.sample makes ceph-ansible try to gather facts on group "all" which may contains hosts that have nothing to do with ceph-ansible, and/or even unreachable hosts which will make the playbook fail.
This commit will replace the "all" group by "ansible_play_hosts", containing only ceph-ansible related hosts.