{% if ansible_fqdn in groups['compute_group_a'] %}
some_var = "foo"
{% elif
ansible_fqdn in groups['compute_group_b'] %}
other_var = "boo"
{% endif %}
not quite as clean as having a merge_configs keyed to the group but in my experience you aren't normally changing a tonne of values for a service anyways so it's pretty manageable.Hi,
It's configuration ..., feel free to submit a patch which modifies kolla-ansible docs...
On Sun, Aug 20, 2023, 02:48 Nguyễn Hữu Khôi <nguyenhuukhoinw@gmail.com> wrote:
Thank you very much.I will do it. I still hope that will be official feature.
On Sat, Aug 19, 2023, 11:11 PM Michal Arbet <michal.arbet@ultimum.io> wrote:
Hello,
It's Ansible so create your special group, change inventory and place your group related variables to group_vars/yourgroup.yml and in config overrides you can use your group related values.
I think this should work
On Fri, Aug 18, 2023, 16:31 Nguyễn Hữu Khôi <nguyenhuukhoinw@gmail.com> wrote:
Hello Koller.
I want to ask if we can overwrite config for a group of nodes. For example,
compute01 >> compute10 will have the same nova configuration
compute11 >> compute20 will have the same nova configuration.
It will be very nice if we support this way.
Thank you. Regards
Nguyen Huu Khoi