On Fri, Feb 15, 2013 at 11:30 AM, Tiago Cruz <tiago.tuxkil...@gmail.com>wrote:
> Hello Nan, > > So this is the problem: I think that puppet must fail on the fist attempt, > but install the package to be sucess on the second try. > > But not, it always failing: > > Feb 15 16:37:49 alog228 puppet-agent[18960]: Starting Puppet client > version 2.7.9 > Feb 15 16:37:57 alog228 puppet-agent[18960]: Could not retrieve catalog > from remote server: Error 400 on SERVER: Failed to parse template > base/rpmforge.repo.erb: Could not find value for 'lsbmajdistrelease' at > 4:/etc/puppet/modules/base/templates/rpmforge.repo.erb at > /etc/puppet/modules/base/manifests/repository.pp:23 on node alog228 > Feb 15 16:37:57 alog228 puppet-agent[18960]: Using cached catalog > Feb 15 16:37:57 alog228 puppet-agent[18960]: Could not retrieve catalog; > skipping run > Feb 15 17:08:00 alog228 puppet-agent[18960]: Could not retrieve catalog > from remote server: Error 400 on SERVER: Failed to parse template > base/rpmforge.repo.erb: Could not find value for 'lsbmajdistrelease' at > 4:/etc/puppet/modules/base/templates/rpmforge.repo.erb at > /etc/puppet/modules/base/manifests/repository.pp:23 on node alog228 > Feb 15 17:08:00 alog228 puppet-agent[18960]: Using cached catalog > Feb 15 17:08:00 alog228 puppet-agent[18960]: Could not retrieve catalog; > skipping run > Feb 15 17:27:05 alog228 puppet-agent[18960]: Caught TERM; calling stop > Feb 15 17:27:06 alog228 puppet-agent[21508]: Reopening log files > Feb 15 17:27:06 alog228 puppet-agent[21508]: Starting Puppet client > version 2.7.9 > Feb 15 17:27:08 alog228 puppet-agent[21508]: Could not retrieve catalog > from remote server: Error 400 on SERVER: Failed to parse template > base/rpmforge.repo.erb: Could not find value for 'lsbmajdistrelease' at > 4:/etc/puppet/modules/base/templates/rpmforge.repo.erb at > /etc/puppet/modules/base/manifests/repository.pp:23 on node alog228 > Two different manifests (in two different environments) need to exist, one to install the facter dependency, the second for the template. Putting them in the same deployment will always result in a catalog compilation error since the master doesn't have the required fact, and the client will not receive a catalog to install the package to fulfill the fact. I saw your module, sounds really nice! Did you know if it works with puppet > 2.7.9? > It should, facts are usually not sensitive to Puppet version. Thanks, Nan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.