Hello List, I´ve update to 2.7.6 (server + clients, from 2.7.1) after reading the last CVE, now I´ve got a problem with copying a file to different releases/architectures using a single statement like this: file { "/path/to/file/abc.file": source => "puppet:///path/to/file/xx- $fact1-$fact2.file", mode => 640, owner => root, group => root, checksum => md5; } puppet agent says: err: /File[/path/to/file/abc.file]: Could not evaluate: Could not retrieve information from environment production source(s) puppet:///files/path/to/file/abc-.repo at /etc/puppet/manifests/base/ base_yum.pp:37 this looks like puppet is missing both facts and therefore cannot construct the required filename and therefore cannot copy the file to the client (although the file is present within the files directory). the client facts file within /var/lib/puppet/yaml/facts has all the facts, so it´s not a facter problem - but I suppose I was using an unsupported feature/bug ? bye , Stefan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
----- Original Message -----> Hello List, > > I´ve update to 2.7.6 (server + clients, from 2.7.1) after reading the > last CVE, now I´ve got a problem with copying a file > to different releases/architectures using a single statement like > this: > > file { "/path/to/file/abc.file": source => > "puppet:///path/to/file/xx- > $fact1-$fact2.file", mode => 640, owner => root, group => root, > checksum => md5; } > > puppet agent says: > err: /File[/path/to/file/abc.file]: Could not evaluate: Could not > retrieve information from environment production source(s) > puppet:///files/path/to/file/abc-.repo at /etc/puppet/manifests/base/ > base_yum.pp:37 > > this looks like puppet is missing both facts and therefore cannot > construct the required filename > and therefore cannot copy the file to the client (although the file > is present within the files directory).try: source => "puppet:///path/to/file/xx-${fact1}-${fact2}.file" you can also test the presence of your facts: notify{"fact1 is ${fact1}": } and run puppetd --test. There''s been some bugs or regressions wrt variable parsing. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Wed, Nov 2, 2011 at 9:20 AM, R.I.Pienaar <rip@devco.net> wrote:> > > ----- Original Message ----- > > Hello List, > > > > I´ve update to 2.7.6 (server + clients, from 2.7.1) after reading the > > last CVE, now I´ve got a problem with copying a file > > to different releases/architectures using a single statement like > > this: > > > > file { "/path/to/file/abc.file": source => > > "puppet:///path/to/file/xx- > > $fact1-$fact2.file", mode => 640, owner => root, group => root, > > checksum => md5; } > > > > puppet agent says: > > err: /File[/path/to/file/abc.file]: Could not evaluate: Could not > > retrieve information from environment production source(s) > > puppet:///files/path/to/file/abc-.repo at /etc/puppet/manifests/base/ > > base_yum.pp:37 > > > > this looks like puppet is missing both facts and therefore cannot > > construct the required filename > > and therefore cannot copy the file to the client (although the file > > is present within the files directory). > > try: > > source => "puppet:///path/to/file/xx-${fact1}-${fact2}.file" > > you can also test the presence of your facts: > > notify{"fact1 is ${fact1}": } > > and run puppetd --test. > > There''s been some bugs or regressions wrt variable parsing. > >Actually, we needed to fix bugs around classes with hyphens in their name (which were allowed) and fully qualifying those variables. Thus hyphens ended up being valid variable characters, and you need to interpolate the variables explicitly. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Stefan Wiederoder
2011-Nov-03 09:23 UTC
[Puppet Users] Re: file Problem after 2.7.6 Upgrade
gotcha, now it´s working again. thanks RI ! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.