Hello All, I am pretty new to puppet and struggle with the syntax any help with this problem means a lot... I am trying to install an RPM on a RHEL system via puppet on the command line it works great. Here is the section of code. # Push out the rpms used file { "/usr/local/src/nagios/rpms": replace => true, source => "puppet:///files/ redhat/nagios/x86_64/install_rpm", recurse => true, ensure => directory, } # Section above works package { "perl-Socket": ensure => present, provider => "rpm", source => "/usr/local/src/ nagios/rpms/perl-Socket6-0.23-1.el5.rf.x86_64.rpm", # require => File["/usr/local/ src/nagios/rpms/perl-Socket6-0.23-1.el5.rf.x86_64.rpm"], } When testing on the client rpm -qa | grep -i Socket I get nothing... Any suggestions are very welcome. (The source file does exist already after one run) Thanks, Joseph -- 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 Thu, Sep 23, 2010 at 3:00 PM, Joseph Griffiths <joseph@jgriffiths.org> wrote:> Hello All, > > I am pretty new to puppet and struggle with the syntax any help with > this problem means a lot... I am trying to install an RPM on a RHEL > system via puppet on the command line it works great. Here is the > section of code. > > # Push out the rpms used > file { "/usr/local/src/nagios/rpms":Perhaps /usr/local/src/nagios/rpms/perl-Socket6-0.23-1.el5.rf.x86_64.rpm> replace => true, > source => "puppet:///files/ > redhat/nagios/x86_64/install_rpm",The same as above here> recurse => true, > ensure => directory, > } > # Section above works > package { "perl-Socket": > ensure => present, > provider => "rpm", > source => "/usr/local/src/ > nagios/rpms/perl-Socket6-0.23-1.el5.rf.x86_64.rpm", > # require => File["/usr/local/ > src/nagios/rpms/perl-Socket6-0.23-1.el5.rf.x86_64.rpm"], > } > > When testing on the client rpm -qa | grep -i Socket I get nothing... > > Any suggestions are very welcome. (The source file does exist already > after one run) > > Thanks, > Joseph > > -- > 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.
devzero2000, Thanks for your comment. Unless I am misunderstanding you are suggesting the package statement is failing because the file does not exist since the push fails... the push is working without any problems. I can confirm the file exists in the required location. Any other suggestions are very welcome... this has me puzzled. Thanks, Joseph On Sep 23, 12:26 pm, devzero2000 <pinto.e...@gmail.com> wrote:> On Thu, Sep 23, 2010 at 3:00 PM, Joseph Griffiths <jos...@jgriffiths.org> wrote: > > Hello All, > > > I am pretty new to puppet and struggle with the syntax any help with > > this problem means a lot... I am trying to install an RPM on a RHEL > > system via puppet on the command line it works great. Here is the > > section of code. > > > # Push out the rpms used > > file { "/usr/local/src/nagios/rpms": > > Perhaps /usr/local/src/nagios/rpms/perl-Socket6-0.23-1.el5.rf.x86_64.rpm> replace => true, > > source => "puppet:///files/ > > redhat/nagios/x86_64/install_rpm", > > The same as above here > > > recurse => true, > > ensure => directory, > > } > > # Section above works > > package { "perl-Socket": > > ensure => present, > > provider => "rpm", > > source => "/usr/local/src/ > > nagios/rpms/perl-Socket6-0.23-1.el5.rf.x86_64.rpm", > > # require => File["/usr/local/ > > src/nagios/rpms/perl-Socket6-0.23-1.el5.rf.x86_64.rpm"], > > } > > > When testing on the client rpm -qa | grep -i Socket I get nothing... > > > Any suggestions are very welcome. (The source file does exist already > > after one run) > > > Thanks, > > Joseph > > > -- > > 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 athttp://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.