Hi there, Maybe another bug? I have the following in site.pp: $localtime = $domain ? { "example.org" => "/usr/share/zoneinfo/Europe/Madrid", default => "/usr/share/zoneinfo/Europe/Madrid" } If I take this away and put it in another file, and then import that file, I get the following error: err: Cannot reassign variable localtime in file /etc/puppet/manifests/def/vars.pp at line 5 Of course I delete the assignment from site.pp when I put it in the other file. Am I missing anything here? Thanks a lot, best regards Jose _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
José González Gómez wrote:> Hi there, > > Maybe another bug? I have the following in site.pp: > > $localtime = $domain ? { > "example.org <http://example.org>" => > "/usr/share/zoneinfo/Europe/Madrid", > default => "/usr/share/zoneinfo/Europe/Madrid" > } > > > If I take this away and put it in another file, and then import that > file, I get the following error: > > err: Cannot reassign variable localtime in file > /etc/puppet/manifests/def/vars.pp at line 5 > > Of course I delete the assignment from site.pp when I put it in the > other file. Am I missing anything here?This is a known bug in 0.20. It''s been fixed but I haven''t put out a release with the fix yet. -- Talent hits a target no one else can hit; Genius hits a target no one else can see. -- Arthur Schopenhauer --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
2006/11/2, Luke Kanies <luke@madstop.com>:> > José González Gómez wrote: > > Hi there, > > > > Maybe another bug? I have the following in site.pp: > > > > $localtime = $domain ? { > > "example.org <http://example.org>" => > > "/usr/share/zoneinfo/Europe/Madrid", > > default => "/usr/share/zoneinfo/Europe/Madrid" > > } > > > > > > If I take this away and put it in another file, and then import that > > file, I get the following error: > > > > err: Cannot reassign variable localtime in file > > /etc/puppet/manifests/def/vars.pp at line 5 > > > > Of course I delete the assignment from site.pp when I put it in the > > other file. Am I missing anything here? > > This is a known bug in 0.20. It''s been fixed but I haven''t put out a > release with the fix yet. >Ok, sorry for the noise Best regards Jose _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users