Hello dear list. First of all thanks to all the developers for the great work on puppet. After using it for a while, there is not better tool to manage a network! I have a problem with the $processor fact, which seems to be either not there or ignored at all. I try to implement package deployment for the Macs (Intel vs. PowerPC) as described here: https://reductivelabs.com/cgi-bin/puppet.cgi/wiki/PuppetMacOSX Basically I have copied and pasted most of the code there. Unfortunately it does not work. I do not know very much about how to debug puppet (except for ''puppetd -d'' which does not reveal any information about this error). In localconfig.yaml on the client, there is no reference to the packages that I want to install for the specific processors (Fink, NeoOffice, ...) Maybe it has something to do with the puppet versions? - puppetmaster is: 0.22.1-1 (Debian etch) - puppet client is: 0.22.1 (on both Intel and PowerPC) Does the example from https://reductivelabs.com/cgi-bin/puppet.cgi/wiki/PuppetMacOSX work for someone? Thanks and have a good day, udo.
Hello again, small update: I have grepped through /usr/lib/ruby/site_ruby/1.8 after ''processor'' and it seems that this variable is not set at all anywhere. There are processor_num and processor_list but no processor variable. Is this true? Where is the ''processor'' variable set? I believe nowhere. Thanks, udo. Udo Waechter wrote:> Hello dear list. > > First of all thanks to all the developers for the great work on puppet. > After using it for a while, there is not better tool to manage a network! > > I have a problem with the $processor fact, which seems to be either not > there or ignored at all. > > I try to implement package deployment for the Macs (Intel vs. PowerPC) > as described here: > https://reductivelabs.com/cgi-bin/puppet.cgi/wiki/PuppetMacOSX > > Basically I have copied and pasted most of the code there. Unfortunately > it does not work. I do not know very much about how to debug puppet > (except for ''puppetd -d'' which does not reveal any information about > this error). In localconfig.yaml on the client, there is no reference to > the packages that I want to install for the specific processors (Fink, > NeoOffice, ...) > > Maybe it has something to do with the puppet versions? > > - puppetmaster is: 0.22.1-1 (Debian etch) > - puppet client is: 0.22.1 (on both Intel and PowerPC) > > Does the example from > https://reductivelabs.com/cgi-bin/puppet.cgi/wiki/PuppetMacOSX work for > someone? > > Thanks and have a good day, > udo. > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users >
On Apr 26, 2007, at 11:18, Udo Waechter wrote:> Is this true? Where is the ''processor'' variable set? I believe > nowhere.I think you need to use $hardwaremodel for your check. It reports "Power Macintosh" on my iBook G4. There is no $processor variable on my machine - but my Linux boxes has $processor[N] where "N" is the processor number starting from zero. You can always run "facter" in a shell to see the available variables... -- Med venlig hilsen Juri Rischel Jensen Fab:IT ApS Vesterbrogade 50 DK-1620 København Tlf: 70 202 407 / Fax: 33 313 640 www.fab-it.dk / juri@fab-it.dk
Ah yes, I forgot that I wrote a custom fact to do the processor detection. If you place this file in your RUBYLIB path, facter should report processor => i386 or powerpc depending on the architecture. I''ll look at adding this to facter. -- Jeff McCune The Ohio State University Department of Mathematics Systems Manager _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
Thanks for this, also do not forget to mention this on the wiki, the documentation is misleading there. Thanks, udo. On 26.04.2007, at 15:28, Jeff McCune wrote:> Ah yes, I forgot that I wrote a custom fact to do the processor > detection. > > If you place this file in your RUBYLIB path, facter should report > processor => i386 or powerpc depending on the architecture. > > I''ll look at adding this to facter. > > -- > Jeff McCune > The Ohio State University > Department of Mathematics > Systems Manager > <unameproc.rb> > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users-- ---[ Institute of Cognitive Science @ University of Osnabrueck ---[ Albrechtstrasse 28, D-49076 Osnabrueck, 969-3362 ---[ Eyes: http://www.zoide.net/ ---[ Ears: http://www.auriculabovinari.de/
udo waechter wrote:> Thanks for this, > also do not forget to mention this on the wiki, the documentation > is misleading there. > Thanks, > udo.Fixed. In the future, please feel free to edit the wiki. Cheers, -- Jeff McCune The Ohio State University Department of Mathematics Systems Manager _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users