hello。 you put file here: /etc/puppet/manifests/files/acadaca/hosts but your fileserver.conf config is [acadaca] path /etc/puppet/files/acadaca allow *
would you like config [acadaca] path /etc/puppet/*manifests*/files/acadaca allow * Gook luck to you~[?] On Tue, Mar 1, 2011 at 4:27 AM, Tim Dunphy <bluethu...@gmail.com> wrote: > hello list!! > > I was able to achieve puppet file sharing in home puppet lab and from > what i recall it was really easy. So I followed the same principles > and practices on my puppet server at work and am a little puzzled as > to why I may be running into this these errors: > > > > [root@kromep1 yum.repos.d]# puppetd --test > info: Caching catalog for kromep1.acadaca.net > info: Applying configuration version '1298923131' > err: //Group[nfsnobody]/gid: change from 65534 to 4294967294 failed: > Could not set gid on group[nfsnobody]: Execution of > '/usr/sbin/groupmod -g 4294967294 nfsnobody' returned 3: groupmod: > invalid numeric argument '4294967294' > > err: //basefiles/File[/etc/yum/pluginconf.d/priorities.conf]: Failed > to retrieve current state of resource: Error 400 on SERVER: Not > authorized to call find on > /file_metadata/acadaca/yum/pluginconf.d/priorities.conf Could not > retrieve file metadata for > puppet:///acadaca/yum/pluginconf.d/priorities.conf: Error 400 on > SERVER: Not authorized to call find on > /file_metadata/acadaca/yum/pluginconf.d/priorities.conf at > /etc/puppet/manifests/classes/basefiles.pp:16 > err: //basefiles/File[/etc/hosts]: Failed to retrieve current state of > resource: Error 400 on SERVER: Not authorized to call find on > /file_metadata/acadaca/hosts Could not retrieve file metadata for > puppet:///acadaca/hosts: Error 400 on SERVER: Not authorized to call > find on /file_metadata/acadaca/hosts at > /etc/puppet/manifests/classes/basefiles.pp:8 > err: //baseapps/Package[keychain]/ensure: change from absent to > present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install > keychain' returned 1: warning: rpmts_HdrFromFdno: Header V3 DSA > signature: NOKEY, key ID 6b8d79e6 > > > GPG key retrieval failed: [Errno 5] OSError: [Errno 2] No such file or > directory: '/etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag' > > notice: Finished catalog run in 12.14 seconds > > > > > > > [acadaca] > path /etc/puppet/files/acadaca > allow * > > > > > > > > class basefiles { > > file { "/etc/hosts": > owner => root, > group => root, > mode => 440, > source => "puppet:///acadaca/hosts" > } > > > file { "/etc/yum/pluginconf.d/priorities.conf": > owner => root, > group => root, > mode => 440, > source => "puppet:///acadaca/yum/pluginconf.d/priorities.conf" > } > } > > > > [root@puppet ~]# ls -l > /etc/puppet/manifests/files/acadaca/yum/pluginconf.d/priorities.conf > -rw-r--r-- 1 root root 37 Feb 28 14:53 > /etc/puppet/manifests/files/acadaca/yum/pluginconf.d/priorities.conf > > > [root@puppet ~]# ls -l /etc/puppet/manifests/files/acadaca/hosts > -rwx------ 1 puppet puppet 214 Feb 25 10:49 > /etc/puppet/manifests/files/acadaca/hosts > > > the gpg key error is a little puzzling too, and i would like to > address that as well. But my main concern at the moment is that file > sharing isnt' working as anticipated. Does anyone have any advice on > this little conundrum (other than going with modules, which is an > obvious answer)? :) > > I am parallelizing my work right now to produce modules for a number > of apps that we use in our production environment. But this request to > get puppet file sharing to work is a management level request, and > once we get that worked out we plan to server certain files that would > be useful to our environment such as motd's (which AFAIK would not fit > neatly into any module category). > > Here is the config/setup for the puppet server at home for which > fileserving is currently working splendidly!! > > [snjh] > path /etc/puppet/manifests/files/snjh > allow *.summitnjhome.com > # deny * > > > [root@virtcent13:~] #cat /etc/puppet/manifests/classes/basefiles.pp > class basefiles { > > file { "/etc/ldap.conf": > owner => root, > group => root, > mode => 440, > source => "puppet:///snjh/ldap.conf" > } > > > file { "/etc/nsswitch.conf": > owner => root, > group => root, > mode => 440, > source => "puppet:///snjh/nsswitch.conf" > } > > > file { "/etc/ssl/gd_bundle.cert": > owner => root, > group => root, > mode => 440, > source => "puppet:///snjh/gd_bundle.crt" > > } > > > file { "/etc/amanda/amanda.conf": > owner => root, > group => root, > mode => 440, > source => "puppet:///snjh/amanda/amanda-client.conf" > } > > } > > > [root@LCENT01:~] #rm /etc/ldap.conf /etc/nsswitch.conf > /etc/ssl/gd_bundle.cert > [root@LCENT01:~] #puppetd --test > info: Caching catalog for lcent01.summitnjhome.com > info: Applying configuration version '1298924781' > notice: //centos/Cron[runPuppet]/hour: defined 'hour' as '*' > notice: //centos/Cron[runPuppet]/weekday: defined 'weekday' as '*' > notice: //basefiles/File[/etc/ssl/gd_bundle.cert]/ensure: content > changed '{md5}3f8fc9b9041bfbda45c697dcfec9ddf6' to > '{md5}3f8fc9b9041bfbda45c697dcfec9ddf6' > notice: //basefiles/File[/etc/ldap.conf]/ensure: content changed > '{md5}06c424283e96eb9ba514cae012d45d4e' to > '{md5}06c424283e96eb9ba514cae012d45d4e' > notice: //basefiles/File[/etc/nsswitch.conf]/ensure: content changed > '{md5}1a7b23a8dde067e7e563131d3d7ebd6f' to > '{md5}1a7b23a8dde067e7e563131d3d7ebd6f' > notice: Finished catalog run in 1.59 seconds > > > Thanks!!! > Tim > > -- > GPG me!! > > gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B > > -- > 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+unsubscr...@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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
<<332.gif>>