From ec9dba5426a42580a9166cd484fb13a5c81ac112 Mon Sep 17 00:00:00 2001 From: Helen Griffiths Date: Wed, 17 Oct 2018 13:20:53 +0100 Subject: [PATCH 1/2] allow user to set ip for fqdn entry, fixes #73 Mobile workstations need to use 127.0.1.1 and not $::ipaddress. Defaulting to $::ipaddress not to break existing behaviour --- manifests/init.pp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index f7af0f5..9540358 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -9,6 +9,7 @@ $enable_fqdn_entry = true, $use_fqdn = true, $fqdn_host_aliases = $::hostname, + $fqdn_ip = $::ipaddress $localhost_aliases = ['localhost', 'localhost4', 'localhost4.localdomain4'], @@ -94,11 +95,9 @@ if $fqdn_entry_enabled == true { $fqdn_ensure = 'present' $my_fqdn_host_aliases = $fqdn_host_aliases - $fqdn_ip = $::ipaddress } else { $fqdn_ensure = 'absent' $my_fqdn_host_aliases = [] - $fqdn_ip = $::ipaddress } Host { From 7aa29d5e70c3d528ff28ed3fa8317c2aedc01b6b Mon Sep 17 00:00:00 2001 From: Helen Griffiths Date: Wed, 17 Oct 2018 13:25:10 +0100 Subject: [PATCH 2/2] fixing typo in previous commit --- manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 9540358..0c61306 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -9,7 +9,7 @@ $enable_fqdn_entry = true, $use_fqdn = true, $fqdn_host_aliases = $::hostname, - $fqdn_ip = $::ipaddress + $fqdn_ip = $::ipaddress, $localhost_aliases = ['localhost', 'localhost4', 'localhost4.localdomain4'],