Hi, Anyone running puppetd --test in their preseed late_command? I can''t seem to get it working as the installer hangs forever in the late_preseed stage. This is what I am using, d-i preseed/late_command string chroot /target; mount /proc; /usr/sbin/puppetd --test --server puppetserver.my.domain Thanks, derek -- --- Derek T. Yarnell University of Maryland Institute for Advanced Computer Studies -- 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.
Hi, Anyone running puppetd --test in their preseed late_command? I can''t seem to get it working as the installer hangs forever in the late_preseed stage. This is what I am using, d-i preseed/late_command string chroot /target; mount /proc; /usr/sbin/puppetd --test --server puppetserver.my.domain If I run this in a virtual console it seems to work fine. Anyone doing this or have they gone another way? Thanks, derek -- -- Derek Yarnell -- 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.
Hi Derek, This is how its done in Foreman: this is the preseed template: http://theforeman.org/repositories/entry/foreman/app/views/unattended/preseed.rhtml and this is the is the late command: http://theforeman.org/repositories/entry/foreman/app/views/unattended/preseed_finish.rhtml hope this helps, Ohad On Thu, Mar 18, 2010 at 9:39 AM, Derek Yarnell <derektyarnell@gmail.com>wrote:> Hi, > > Anyone running puppetd --test in their preseed late_command? I can''t seem > to get it working as the installer hangs forever in the late_preseed stage. > > This is what I am using, > > d-i preseed/late_command string chroot /target; mount /proc; > /usr/sbin/puppetd --test --server puppetserver.my.domain > > If I run this in a virtual console it seems to work fine. Anyone doing this > or have they gone another way? > > Thanks, > derek > > -- > -- > Derek Yarnell > > -- > 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<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- 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, Mar 17, 2010 at 07:10:20PM -0400, Derek Yarnell wrote:> Hi, > > Anyone running puppetd --test in their preseed late_command? I > can''t seem to get it working as the installer hangs forever in the > late_preseed stage. > > This is what I am using, > > d-i preseed/late_command string chroot /target; mount /proc; > /usr/sbin/puppetd --test --server puppetserver.my.domainWhat we did as a late command was the following: d-i preseed/late_command in-target wget -O /target/etc/default/puppet http://DEPLOYMENT_SERVER/d-i/lenny/puppet.default Which gets the following default file: ==== Begin /etc/default/puppet ===# Defaults for puppet - sourced by /etc/init.d/puppet # Start puppet on boot? START=yes cat <<HERE > /etc/puppet/puppet.conf [main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet factpath=\$vardir/lib/facter pluginsync=true server=PUPPETMASTER evaltrace=true HERE for n in `seq 1 30`; do ping -c 1 PUPPETMASTER >& /dev/null && break echo -n " $n" sleep 1 done # Startup options DAEMON_OPTS="-w 120" ==== End /etc/default/puppet === Then, when the machine boots for the first time, it has enough information to contact the puppetmaster and do a run. Since puppetd does a run when it starts, this starts the configuration process. Cheers, -- Eric Gerlach, Network Administrator Federation of Students University of Waterloo p: (519) 888-4567 x36329 e: egerlach@feds.uwaterloo.ca w: http://feds.ca/ "To Serve, Empower, and Represent the Undergraduate Students of the University of Waterloo" -- 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.