[kolla-ansible] group_vars question
Folks, I have multiple kinds of nic in cloud and want to configure SRIOV so instead of defining the following variable for each compute node, I would like to create a group and apply config to the groups. Am I right here to define groups like the following or is there a better way to handle this? What is the default path of group_vars and hosts_vars in kolla-ansible? # vi /etc/kolla/group_vars/sriov_eno49.yml neutron_sriov_physnet_mappings: physnet1: eno49 # vi /etc/kolla/group_vars/sriov_eno50.yml neutron_sriov_physnet_mappings: physnet1: eno50 # vi multinode [sriov_eno49] comp1 comp2 comp3 [sriov_eno50] comp4 comp5 comp6
Hi Satish, there are several places, and this is not depend on Kolla-Ansible, it is Ansible itself: https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_variables.h... On Thu, Nov 9, 2023 at 7:03 AM Satish Patel <satish.txt@gmail.com> wrote:
Folks,
I have multiple kinds of nic in cloud and want to configure SRIOV so instead of defining the following variable for each compute node, I would like to create a group and apply config to the groups.
Am I right here to define groups like the following or is there a better way to handle this?
What is the default path of group_vars and hosts_vars in kolla-ansible?
# vi /etc/kolla/group_vars/sriov_eno49.yml neutron_sriov_physnet_mappings: physnet1: eno49
# vi /etc/kolla/group_vars/sriov_eno50.yml neutron_sriov_physnet_mappings: physnet1: eno50
# vi multinode
[sriov_eno49] comp1 comp2 comp3
[sriov_eno50] comp4 comp5 comp6
-- Regards, Maksim Malchuk
Thanks for the information. On Thu, Nov 9, 2023 at 3:32 PM Maksim Malchuk <maksim.malchuk@gmail.com> wrote:
Hi Satish,
there are several places, and this is not depend on Kolla-Ansible, it is Ansible itself: https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_variables.h...
On Thu, Nov 9, 2023 at 7:03 AM Satish Patel <satish.txt@gmail.com> wrote:
Folks,
I have multiple kinds of nic in cloud and want to configure SRIOV so instead of defining the following variable for each compute node, I would like to create a group and apply config to the groups.
Am I right here to define groups like the following or is there a better way to handle this?
What is the default path of group_vars and hosts_vars in kolla-ansible?
# vi /etc/kolla/group_vars/sriov_eno49.yml neutron_sriov_physnet_mappings: physnet1: eno49
# vi /etc/kolla/group_vars/sriov_eno50.yml neutron_sriov_physnet_mappings: physnet1: eno50
# vi multinode
[sriov_eno49] comp1 comp2 comp3
[sriov_eno50] comp4 comp5 comp6
-- Regards, Maksim Malchuk
participants (2)
-
Maksim Malchuk
-
Satish Patel