Comment 11 for bug 1969939

Revision history for this message
Serge Olkhovik (serge-olkhovik) wrote :

Hi! Just created a test VM with 22.04 (updated to latest), and I have such code:

        file { '/etc/localtime':
                ensure => 'link',
                target => $osfamily ? {
                        'Debian' => '/usr/share/zoneinfo/posix/America/Los_Angeles',
                        default => '/usr/share/zoneinfo/America/Los_Angeles',
                },

and initially I had this and only this error:

Error: wrong number of arguments (given 3, expected 2)
Error: /Stage[main]/Linux::Vm/File[/etc/localtime]/target: change from '/usr/share/zoneinfo/Etc/UTC' to '/usr/share/zoneinfo/posix/America/Los_Angeles' failed: wrong number of arguments (given 3, expected 2)

but now, with proposed version I'm getting something different:

Error: /File[/var/cache/puppet/facts.d]: Failed to generate additional resources using 'eval_generate': undefined method `to_sym' for nil:NilClass
Error: /File[/var/cache/puppet/facts.d]: Could not evaluate: Could not retrieve information from environment production source(s) puppet:///pluginfacts
Error: /File[/var/cache/puppet/lib]: Failed to generate additional resources using 'eval_generate': undefined method `to_sym' for nil:NilClass
Error: /File[/var/cache/puppet/locales]: Failed to generate additional resources using 'eval_generate': undefined method `to_sym' for nil:NilClass

I enabled proposed repo and update puppet to that version:

puppet:
  Installed: 5.5.22-4ubuntu0.1
  Candidate: 5.5.22-4ubuntu0.1
  Version table:
 *** 5.5.22-4ubuntu0.1 400
        500 http://archive.ubuntu.com/ubuntu jammy-proposed/universe amd64 Packages
        100 /var/lib/dpkg/status
     5.5.22-4 500
        500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages