Skip to content

legacy fact #26

@hboetes

Description

@hboetes

Please apply the following patch to remove a legacy fact, which causes the following error:

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown variable: '::osfamily'. (file: /etc/puppetlabs/code/environments/production/modules/timezone/manifests/init.pp, line: 54, column: 8) on node 
diff --git a/manifests/init.pp b/manifests/init.pp
index 36c48bc..1dd1c7b 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -51,7 +51,7 @@ class timezone (
   }
 
   # Debian and Enterprise Linux have differing ways of recording clock settings
-  case $::osfamily {
+  case fact('os.family') {
     'Archlinux': {
         package { 'tzdata':
             ensure => present,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions