voxpupuli / puppet-system

Manage Linux system resources and services from hiera configuration
https://forge.puppet.com/puppet/system
Apache License 2.0
63 stars 47 forks source link

Hosts should not be ordered for me #7

Closed antonbabenko closed 1 year ago

antonbabenko commented 11 years ago

Having this yaml:

system::hosts:
  host1:
    ip:           '1.2.3.4'
    host_aliases: [ 'system.example.com', 'system' ]
  host2:
    ip:           '1.2.3.5'
    host_aliases: [ 'site.example.com ]

It produces /etc/hosts which always contain hosts ordered from shortest to longest without keeping order specified in host_aliases. Afterall it makes puppet agent to think that domain is not set when starting as agent, because hostname resolves by shortest one (system in this example).

facter --puppet | grep domain => should be example.com

Is it a bug ? How can I guarantee the order to be as longest alias first.

bastelfreak commented 1 year ago

Hi, based on a discussion in https://groups.io/g/voxpupuli/message/449 we decided to archive this repository. I'm going to close all issues and PRs. If you're interested in maintaining the module, please respond to our mailinglist.