Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

puppet: Switch from $::fqdn to non-legacy $::networking.

Alex Vandiverf2f4462e7158
diff --git a/puppet/zulip/manifests/postfix_localmail.pp b/puppet/zulip/manifests/postfix_localmail.pp
index 94ae6642088..ca0d02e57d7 100644
--- a/puppet/zulip/manifests/postfix_localmail.pp
+++ b/puppet/zulip/manifests/postfix_localmail.pp
@@ -2,10 +2,11 @@ class zulip::postfix_localmail {
include zulip::snakeoil
$postfix_packages = [ 'postfix', ]
- if $::fqdn == '' {
+ $fqdn = $::networking['fqdn']
+ if $fqdn == '' {
fail('Your system does not have a fully-qualified domain name defined. See hostname(1).')
}
- $postfix_mailname = zulipconf('postfix', 'mailname', $::fqdn)
+ $postfix_mailname = zulipconf('postfix', 'mailname', $fqdn)
package { $postfix_packages:
ensure => 'installed',
require => File['/etc/mailname'],
@@ -20,7 +21,7 @@ class zulip::postfix_localmail {
mode => '0644',
owner => root,
group => root,
- content => $::fqdn,
+ content => $fqdn,
}
file {'/etc/postfix/main.cf':