aboutsummaryrefslogtreecommitdiffstats
path: root/deployment
diff options
context:
space:
mode:
authorOlivier Blin <dev@blino.org>2016-02-29 01:16:26 +0100
committerOlivier Blin <dev@blino.org>2016-02-29 01:16:58 +0100
commit44bec686751d2d8cd3f8222cefbbd8a2678686f0 (patch)
tree46e52b182cd6f7e7d95b5ad55940a17e3e80ba52 /deployment
parentec3d00ece71fb93aa8266ac5157e8c8aa5bb7e6f (diff)
downloadpuppet-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')
-rw-r--r--deployment/common/manifests/init.pp5
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 {