aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/common
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@gmail.com>2016-02-29 00:24:28 +0000
committerPascal Terjan <pterjan@gmail.com>2016-02-29 00:24:28 +0000
commit1475030834c8a957d1704058e08668bf82bbd9d5 (patch)
tree9833e4705fe571f8b344397c03b285906e68df3f /deployment/common
parent44bec686751d2d8cd3f8222cefbbd8a2678686f0 (diff)
downloadpuppet-1475030834c8a957d1704058e08668bf82bbd9d5.tar
puppet-1475030834c8a957d1704058e08668bf82bbd9d5.tar.gz
puppet-1475030834c8a957d1704058e08668bf82bbd9d5.tar.bz2
puppet-1475030834c8a957d1704058e08668bf82bbd9d5.tar.xz
puppet-1475030834c8a957d1704058e08668bf82bbd9d5.zip
Use fqdn as hostname rather than localhost
Diffstat (limited to 'deployment/common')
-rw-r--r--deployment/common/manifests/init.pp4
1 files changed, 2 insertions, 2 deletions
diff --git a/deployment/common/manifests/init.pp b/deployment/common/manifests/init.pp
index e17f02d8..2a82cd1c 100644
--- a/deployment/common/manifests/init.pp
+++ b/deployment/common/manifests/init.pp
@@ -20,9 +20,9 @@ class common {
ensure => directory
}
- host { 'localhost':
+ host { "${::hostname}.${::domain}":
ip => '127.0.0.1',
- host_aliases => [ "${::hostname}", "${::hostname}.${::domain}" ],
+ host_aliases => [ "${::hostname}", 'localhost' ],
}
}