M.F.Haris
2010-Aug-05 13:05 UTC
[Puppet Users] Factor and/or Puppet fails to recognize SLES
hi, i tried to install packages with RUG with puppet 0.24.5 on SLES 11 but it is giving following error; *Failed to retrieve current state of resource: Provider rug is not functional on this platform* while searching for answers I found a Bug report: http://projects.reductivelabs.com/issues/1735 from Richard Brown, I edited the *variable.rb *accordingly; * * *-- test_value.downcase.to_s == value.to_s.downcase* *+ test_value.to_s.downcase == value.to_s.downcase* and rug.rb as; *-- defaultfor :operatingsystem => :suse* *+ defaultfor :operatingsystem => :sles* *-- confine :operatingsystem => :suse* *+ confine :operatingsystem => :sles* Its workign fine now, but if i tried to make a confine list as; *confine :operatingsystem => [:suse,:sles],* it doesn''t work. I am wondering is it the right fix to make? or there is a better way to deal with it. also do i have to update this code on every puppet client? :-( M Haris Farooque -- 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.
PowerPaul86
2010-Aug-20 13:00 UTC
[Puppet Users] Re: Factor and/or Puppet fails to recognize SLES
Do you really want/need to use rug with puppet instead of zypper or smart? On Aug 5, 3:05 pm, "M.F.Haris" <mfha...@gmail.com> wrote:> hi, > i tried to install packages with RUG with puppet 0.24.5 on SLES 11 but it is > giving following error; > *Failed to retrieve current state of resource: Provider rug is not > functional on this platform* > > while searching for answers I found a Bug report:http://projects.reductivelabs.com/issues/1735from Richard Brown, > > I edited the *variable.rb *accordingly; > * > * > *-- test_value.downcase.to_s == value.to_s.downcase* > *+ test_value.to_s.downcase == value.to_s.downcase* > > and rug.rb as; > *-- defaultfor :operatingsystem => :suse* > *+ defaultfor :operatingsystem => :sles* > > *-- confine :operatingsystem => :suse* > *+ confine :operatingsystem => :sles* > > Its workign fine now, but if i tried to make a confine list as; *confine > :operatingsystem => [:suse,:sles],* it doesn''t work. I am wondering is it > the right fix to make? or there is a better way to deal with it. also do i > have to update this code on every puppet client? :-( > > M Haris Farooque-- 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.