Hyphens discouraged in the inventory group names

Bug #1946141 reported by Piotr Parczewski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
New
Undecided
Adrian Andreias

Bug Description

As per: https://docs.ansible.com/ansible/latest/network/getting_started/first_inventory.html#basic-inventory

And the warnings:

Not replacing invalid character(s) "{'-'}" in group name (chrony-server)
Not replacing invalid character(s) "{'-'}" in group name (tls-backend)
Not replacing invalid character(s) "{'-'}" in group name (tls-backend)
Not replacing invalid character(s) "{'-'}" in group name (hacluster-remote)
Not replacing invalid character(s) "{'-'}" in group name (hacluster-remote)
Not replacing invalid character(s) "{'-'}" in group name (outward-rabbitmq)
Not replacing invalid character(s) "{'-'}" in group name (outward-rabbitmq)
Not replacing invalid character(s) "{'-'}" in group name (monasca-agent)
Not replacing invalid character(s) "{'-'}" in group name (monasca-agent)

It's something to consider before upstream Ansible decides to refuse accepting such group names.

Revision history for this message
Adrian Andreias (adrian-fleio) wrote :

Should I replace hyphen to underscore in group names everywhere?

I guess this would affect existing users' inventory files.

Are there other implications to consider and what would be the best approach on this?

Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

So far we have agreed to simply ignore this issue by using an appropriate ansible config file option.

Changed in kolla-ansible:
assignee: nobody → Adrian Andreias (adrian-fleio)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.