hi. i fixed it after read the docs: Enabling Pluginsync
After setting up the directory structure, we then need to turn on pluginsync in our puppet.conf configuration file on *both the master and the clients:* [main] pluginsync = true On Tuesday, July 31, 2012 11:06:04 PM UTC+7, Shannon McFarland wrote: > > Hey folks, > > I am using puppet for some OpenStack deployments and on a new node things > look pretty good right until after the successful reception of a cert from > the puppet master. I get this error: > > err: Could not retrieve catalog from remote server: Error 400 on SERVER: > $concat_basedir not defined. Try running again with pluginsync enabled at > /usr/share/puppet/modules/concat/manifests/setup.pp:25 on node > controller-1.example.com > warning: Not using cache on failed catalog > err: Could not retrieve catalog; skipping run > > Things seem to be as they should in the setup.pp file it refers to. I > have searched for similar issues and cannot seem to find much on this > issue. It happens every time I build a node. > > Below is the setup.pp file for your reference. > > # Sets up the concat system. > # > # $concatdir is where the fragments live and is set on the fact > concat_basedir. > # Since puppet should always manage files in $concatdir and they should > # not be deleted ever, /tmp is not an option. > # > # $puppetversion should be either 24 or 25 to enable a 24 compatible > # mode, in 24 mode you might see phantom notifies this is a side effect > # of the method we use to clear the fragments directory. > # > # The regular expression below will try to figure out your puppet version > # but this code will only work in 0.24.8 and newer. > # > # It also copies out the concatfragments.sh file to ${concatdir}/bin > class concat::setup { > $id = $::id > $root_group = $id ? { > root => 0, > default => $id > } > > if $::concat_basedir { > $concatdir = $::concat_basedir > } else { > fail ("\$concat_basedir not defined. Try running again with pluginsync > enabled") > } > > $majorversion = regsubst($::puppetversion, > '^[0-9]+[.]([0-9]+)[.][0-9]+$', '\1') > > file{"${concatdir}/bin/concatfragments.sh": > owner => $id, > group => $root_group, > mode => '0755', > source => $majorversion ? { > 24 => 'puppet:///concat/concatfragments.sh', > default => 'puppet:///modules/concat/concatfragments.sh' > }; > > [ $concatdir, "${concatdir}/bin" ]: > ensure => directory, > owner => $id, > group => $root_group, > mode => '0750'; > > ## Old versions of this module used a different path. > '/usr/local/bin/concatfragments.sh': > ensure => absent; > } > } > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/ZL-kqVBZNCYJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.