Modules that provide plugins / functions need to exist in all environments (preferably the same version, other issues can occur if they are not) if you want everything to work correctly with the current state of puppet. In this case your puppet master is most likely looking for concat / stdlib in the production environment that it is part of and not finding the function when trying to compile the catalog. This is really the biggest drawback of the current environment system in puppet.
On Friday, March 14, 2014 7:31:20 AM UTC-5, Agustin Horischnik wrote: > > I just switched to using environments more or less as described in > http://puppetlabs.com/blog/git-workflow-and-puppet-environments and now > puppet agent --test on a previously working node fails with... > > Info: Retrieving plugin > Info: Loading facts in /var/lib/puppet/lib/facter/pip_version.rb > Info: Loading facts in /var/lib/puppet/lib/facter/last_run.rb > Info: Loading facts in /var/lib/puppet/lib/facter/python_version.rb > Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb > Info: Loading facts in /var/lib/puppet/lib/facter/virtualenv_version.rb > Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb > Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb > Info: Loading facts in /var/lib/puppet/lib/facter/nodejs_latest_version.rb > Info: Loading facts in /var/lib/puppet/lib/facter/nodejs_stable_version.rb > Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb > Info: Loading facts in /var/lib/puppet/lib/facter/puppi_projects.rb > Info: Loading facts in > /var/lib/puppet/lib/facter/nodejs_installed_version.rb > Info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb > Error: Could not retrieve catalog from remote server: Error 400 on SERVER: > Unknown function concat at > /etc/puppet/environments/testing/modules/gi/manifests/inst.pp:104 on node > france-4.kimsufi.com > Warning: Not using cache on failed catalog > Error: Could not retrieve catalog; skipping run > > My puppet.conf in the master looks like this: > > ... > [main] > logdir = /home/log/puppet #changed var to home > vardir = /var/lib/puppet > ssldir = /var/lib/puppet/ssl > rundir = /var/run/puppet > factpath = $vardir/lib/facter > templatedir = $confdir/templates > hiera_config = $confdir/hiera.yaml > > [master] > environment = production > manifest = $confdir/environments/$environment/manifests/site.pp > manifestdir = $confdir/environments/$environment/manifests > modulepath = $confdir/environments/$environment/modules > tamplatedir = $confdir/environments/$environment/templates > ... > > Both master and agent puppet version is 3.4.3. > stdlib is installed in /etc/puppet/environments/testing/modules/stdlib > > Any ideas what could I be doing wrong? > > > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/ae15cc74-01ca-4936-8133-aa3f95ab8740%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.