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:
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) 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)
Error: /Stage[
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 var/cache/ puppet/ facts.d] : Could not evaluate: Could not retrieve information from environment production source(s) puppet: ///pluginfacts var/cache/ puppet/ lib]: Failed to generate additional resources using 'eval_generate': undefined method `to_sym' for nil:NilClass var/cache/ puppet/ locales] : Failed to generate additional resources using 'eval_generate': undefined method `to_sym' for nil:NilClass
Error: /File[/
Error: /File[/
Error: /File[/
I enabled proposed repo and update puppet to that version:
puppet: archive. ubuntu. com/ubuntu jammy-proposed/ universe amd64 Packages dpkg/status archive. ubuntu. com/ubuntu jammy/universe amd64 Packages
Installed: 5.5.22-4ubuntu0.1
Candidate: 5.5.22-4ubuntu0.1
Version table:
*** 5.5.22-4ubuntu0.1 400
500 http://
100 /var/lib/
5.5.22-4 500
500 http://