I have set up puppet on Ubuntu/Debian servers with no problem. I am trying to get puppet working in a RHEL environment. I have the client installed and the certificate is signed so I know the two are talking but for some reason I can not get puppet to push the file on to the client. What am I missing? OS - RHEL5.7 Installation Source - epel-testing repo Puppet server version - 2.6.6 puppetd version - 2.6.6 From fileserver.conf: <snip> [test] path /home/admin/puppet allow * </snip> File permissions: -rwxrw-rw- 1 admin admin 99 Sep 13 11:39 /home/admin/puppet/jck.txt From site.pp: import nodes/* From /etc/puppet/manifests/nodes/client.pp node client { file { "/home/admin/puppet/jck.txt" owner => admin group => admin mode => 0744 source => puppet:///test/jck.txt } <snip> John Kennedy -- 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.
Sorry, forgot to include the puppet command output...: # puppet agent --test --verbose info: Caching catalog for client info: Applying configuration version ''1315910859'' notice: Finished catalog run in 0.02 seconds John Kennedy On Tue, Sep 13, 2011 at 12:13, John Kennedy <skebi69@gmail.com> wrote:> I have set up puppet on Ubuntu/Debian servers with no problem. I am trying > to get puppet working in a RHEL environment. I have the client installed and > the certificate is signed so I know the two are talking but for some reason > I can not get puppet to push the file on to the client. > What am I missing? > > OS - RHEL5.7 > Installation Source - epel-testing repo > Puppet server version - 2.6.6 > puppetd version - 2.6.6 > > From fileserver.conf: > > <snip> > [test] > path /home/admin/puppet > allow * > </snip> > > File permissions: > > -rwxrw-rw- 1 admin admin 99 Sep 13 11:39 /home/admin/puppet/jck.txt > > From site.pp: > > import nodes/* > > From /etc/puppet/manifests/nodes/client.pp > > node client { > > file { "/home/admin/puppet/jck.txt" > owner => admin > group => admin > mode => 0744 > source => puppet:///test/jck.txt } > <snip> > > John Kennedy > >-- 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.
Try this: node client { file { "/home/admin/puppet/jck.txt": owner => admin, group => admin, mode => 0744, source => puppet:///test/jck.txt, } Beware the colon and the commas. (Didn''t you get any error messages in your log files?) Bernd Von: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] Im Auftrag von John Kennedy Gesendet: Dienstag, 13. September 2011 13:17 An: puppet-users@googlegroups.com Betreff: [Puppet Users] Re: Puppet not pushing file Sorry, forgot to include the puppet command output...: # puppet agent --test --verbose info: Caching catalog for client info: Applying configuration version ''1315910859'' notice: Finished catalog run in 0.02 seconds John Kennedy On Tue, Sep 13, 2011 at 12:13, John Kennedy <skebi69@gmail.com<mailto:skebi69@gmail.com>> wrote: I have set up puppet on Ubuntu/Debian servers with no problem. I am trying to get puppet working in a RHEL environment. I have the client installed and the certificate is signed so I know the two are talking but for some reason I can not get puppet to push the file on to the client. What am I missing? OS - RHEL5.7 Installation Source - epel-testing repo Puppet server version - 2.6.6 puppetd version - 2.6.6 From fileserver.conf: <snip> [test] path /home/admin/puppet allow * </snip> File permissions: -rwxrw-rw- 1 admin admin 99 Sep 13 11:39 /home/admin/puppet/jck.txt From site.pp: import nodes/* From /etc/puppet/manifests/nodes/client.pp node client { file { "/home/admin/puppet/jck.txt" owner => admin group => admin mode => 0744 source => puppet:///test/jck.txt } <snip> John Kennedy -- 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. -- 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 Tue, Sep 13, 2011 at 12:27, Bernd Adamowicz <Bernd.Adamowicz@esailors.de>wrote:> Try this:**** > > ** ** > > node client { > > file { "/home/admin/puppet/jck.txt": > owner => admin, > group => admin, > mode => 0744, > source => puppet:///test/jck.txt,**** > > }**** > > ** ** > > Beware the colon and the commas. (Didn’t you get any error messages in your > log files?)**** > > ** ** > > Bernd**** > > ** ** > >Bernd, Thanks for the reply. I added the : and , (I hate it when I forget those...). Just to ask, should there be a comma on the source line since it is the last line of the section? No errors in /var/log/messages. It just says Caching catalog for... Applying configuration version...Finished catalog run in... messages but the file is not pushed... John -- 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.
Von: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] Im Auftrag von John Kennedy Gesendet: Dienstag, 13. September 2011 13:43 An: puppet-users@googlegroups.com Betreff: Re: [Puppet Users] Re: Puppet not pushing file On Tue, Sep 13, 2011 at 12:27, Bernd Adamowicz <Bernd.Adamowicz@esailors.de> wrote: Try this: node client { file { "/home/admin/puppet/jck.txt": owner => admin, group => admin, mode => 0744, source => puppet:///test/jck.txt, } Beware the colon and the commas. (Didn''t you get any error messages in your log files?) Bernd>Bernd, >Thanks for the reply. I added the : and , (I hate it when I forget those...). Just to ask, should there be a comma on >the source line since it is the last line of the section?>No errors in /var/log/messages. It just says Caching catalog for... Applying configuration version...Finished catalog >run in... messages but the file is not pushed...Hi John, Yes, there should be a comma. Puppet''s documentation clearly recommends this. If it''s still not working, start your Puppet master and the client in debug mode (--debug) and check both log files and maybe post the results here. Bernd -- 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 Tue, Sep 13, 2011 at 12:52, Bernd Adamowicz <Bernd.Adamowicz@esailors.de>wrote:> > > Von: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] > Im Auftrag von John Kennedy > Gesendet: Dienstag, 13. September 2011 13:43 > An: puppet-users@googlegroups.com > Betreff: Re: [Puppet Users] Re: Puppet not pushing file > > > On Tue, Sep 13, 2011 at 12:27, Bernd Adamowicz < > Bernd.Adamowicz@esailors.de> wrote: > Try this: > > node client { > > file { "/home/admin/puppet/jck.txt": > owner => admin, > group => admin, > mode => 0744, > source => puppet:///test/jck.txt, > } > > Beware the colon and the commas. (Didn''t you get any error messages in your > log files?) > > Bernd > >Sorry, this was my error...Had a few permissions wrong and some other silly things...On to my next error (in a new email thread...) John John Kennedy -- 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.