diff options
author | Olivier Blin <dev@blino.org> | 2016-02-29 01:16:26 +0100 |
---|---|---|
committer | Olivier Blin <dev@blino.org> | 2016-02-29 01:16:58 +0100 |
commit | 44bec686751d2d8cd3f8222cefbbd8a2678686f0 (patch) | |
tree | 46e52b182cd6f7e7d95b5ad55940a17e3e80ba52 /deployment/common | |
parent | ec3d00ece71fb93aa8266ac5157e8c8aa5bb7e6f (diff) | |
download | puppet-44bec686751d2d8cd3f8222cefbbd8a2678686f0.tar puppet-44bec686751d2d8cd3f8222cefbbd8a2678686f0.tar.gz puppet-44bec686751d2d8cd3f8222cefbbd8a2678686f0.tar.bz2 puppet-44bec686751d2d8cd3f8222cefbbd8a2678686f0.tar.xz puppet-44bec686751d2d8cd3f8222cefbbd8a2678686f0.zip |
Add host aliases from 127.0.0.1 to localhost, hostname and FQDN
Lack of hostname alias made ORBit2 tests fails, since it listens to
127.0.0.1 and the test connects to hostname (detected by pterjan).
Diffstat (limited to 'deployment/common')
-rw-r--r-- | deployment/common/manifests/init.pp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/deployment/common/manifests/init.pp b/deployment/common/manifests/init.pp index acdaea7e..e17f02d8 100644 --- a/deployment/common/manifests/init.pp +++ b/deployment/common/manifests/init.pp @@ -19,6 +19,11 @@ class common { file { '/srv/': ensure => directory } + + host { 'localhost': + ip => '127.0.0.1', + host_aliases => [ "${::hostname}", "${::hostname}.${::domain}" ], + } } class default_mageia_server inherits default_mageia_server_no_smtp { |