Here is the deal, we are trying to launch the puppet agent --test from the 
preseed file using this line:
d-i preseed/late_command string in-target puppet agent --test --waitforcert 
0 || true; 

I tried using 'puppet agent --config=/etc/puppet/puppet.conf --test 
--waitforcert 0' given your suggestion but I don't think that it is a valid 
flag for the puppet agent (--config).

During the late_command run it gets a cert from the master just fine but 
then dies:

Jul 31 23:13:08 puppet-agent[5244]: Caching certificate for 
controller-1.example.com
Jul 31 23:13:08 in-target: ^[[0;32minfo: Caching certificate for 
controller-1.example.com^[[0m
Jul 31 23:13:09 puppet-agent[5244]: Caching certificate_revocation_list for 
ca
Jul 31 23:13:09 in-target: ^[[0;32minfo: Caching 
certificate_revocation_list for ca^[[0m
Jul 31 23:13:11 puppet-agent[5244]: Could not retrieve catalog from remote 
server: Error 400 on
SERVER: $concat_basedir not defined. Try running again with pluginsync 
enabled at /usr/share/pup
pet/modules/concat/manifests/setup.pp:25 on node controller
Jul 31 23:13:11 in-target: ^[[1;35merr: 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 control
Jul 31 23:13:11 puppet-agent[5244]: Not using cache on failed catalog
Jul 31 23:13:11 in-target: ^[[0;33mwarning: Not using cache on failed 
catalog^[[0m
Jul 31 23:13:11 puppet-agent[5244]: Could not retrieve catalog; skipping run
Jul 31 23:13:11 in-target: ^[[1;35merr: Could not retrieve catalog; 
skipping run^[[0m

Does the 'puppet agent' command support a path to the correct puppet.conf?  

Shannon

On Tuesday, July 31, 2012 1:52:59 PM UTC-6, R.I. Pienaar wrote:
>
>
>
> ----- Original Message ----- 
> > From: "Shannon McFarland" <shmcf...@gmail.com> 
> > To: puppet-users@googlegroups.com 
> > Sent: Tuesday, July 31, 2012 10:46:37 AM 
> > Subject: Re: [Puppet Users] $concat_basedir not defined 
> > 
> > Yeah, I ran it with 'sudo' and it pulled the plugin and kicked off. 
> > So, how can I point to the correct configuration without running as 
> > root or sudo in my preseed? 
>
> then you should edit whatever "puppet agent --configprint config" 
> reports as the right config file for the user else run puppet with 
> a specific --config=/etc/puppet/puppet.conf or similar 
>

-- 
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/-/gJtyRr22APcJ.
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.

Reply via email to