Skip to content

Do not add entry if it's primary_name #23

@PandemiK911

Description

@PandemiK911

Hello,
Shouldn't pass an entry if the hostname is the same as primary_name ?

As an example, we're using this module on a cluster. Each machine use a public network and a private one. We want all traffic to go through the private network so all nodes has been added as entries.
We end up with a hosts file like this on node01 :

1.2.3.1 node01.domain.com node01
dead::beef node01.domain.com node01

10.10.10.1 node01.domain.com node01
10.10.10.2 node02.domain.com node02
and so on ...

This create a duplicate entry for the local node. AFAIK the first one is used by this could potentially create strange behavior right ?

A good practice would be to filter entries corresponding to primary_name.

Sorry, I tried to create the code in the template file but it far above my skills.

Thanks !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions