I''m trying to build a minimal class that installs a package on a centos machine. here is the class: class admin-users { package { admin-users: ensure => latest } } The package exists in a yum repo: [root@ tmp]# yum list admin-users Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * rpmforge: apt.sw.be Available Packages admin-users.noarch 1.1.11-1 extras When I run the puppet client in debug mode it doesnt install the package. What am I missing? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
off the top of my head try quoting the package name package { "admin-users": ensure => latest } Neil dj wrote:> I''m trying to build a minimal class that installs a package on a > centos machine. > > here is the class: > > class admin-users { > > package { admin-users: ensure => latest } > > } > > The package exists in a yum repo: > > [root@ tmp]# yum list admin-users > Loaded plugins: fastestmirror > Loading mirror speeds from cached hostfile > * rpmforge: apt.sw.be > Available Packages > admin-users.noarch > 1.1.11-1 > extras > > > When I run the puppet client in debug mode it doesnt install the > package. What am I missing? > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Neil Prockter wrote:> dj wrote: >> I''m trying to build a minimal class that installs a package on a >> centos machine. >> >> here is the class: >> >> class admin-users {>> package { admin-users: ensure => latest }> off the top of my head try quoting the package name > > package { "admin-users": ensure => latest }And you need to "include" the class in your node. Regards, DavidS --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---