Thanks for your immediate response. The first solution you propesed worked flawlessly. I like that. Thanks.
On Fri, Jun 22, 2012 at 9:23 AM, Christopher Wood < christopher_w...@pobox.com> wrote: > > class myrpm { > package { 'foo_bar': } > } > > node "myhost.me.com" { > class { 'myrpm': } > } > > If this is something that you absolutely must do by the end of the day on > a Friday because some manager is a maniac, you can deploy the rpm via a > file resource and then install it by specifying alternate package type > parameters: > > class myrpm { > $myrpm = '/tmp/foo_bar_1.0.rpm' > $myrpmsource = "puppet:///modules/myrpm/foo_bar_1.0.rpm" > $mypkg = "foo_bar" > file { $myrpm: > source => $myrpmsource, > } > package { $mypkg: > provider => 'rpm', > source => $myrpm, > require => File[$myrpm], > } > } > > node "myhost.me.com" { > class { 'myrpm': } > } > > With the above I am assuming that your classes are in modules (save your > sanity, use them). More on modules: > > http://docs.puppetlabs.com/puppet/2.7/reference/modules_fundamentals.html > http://docs.puppetlabs.com/module_cheat_sheet.html > > Also remember dependencies: > > http://docs.puppetlabs.com/references/stable/metaparameter.html#require > > And more generally: > > http://docs.puppetlabs.com/guides/language_guide.html > > > > How would I deploy this to all hosts that talk to my puppetmaster? > > Thanks > > Chris > > > > -- > > 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. > > -- 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.