On Thu, Mar 17, 2011 at 6:10 PM, Nigel Kersten <[email protected]>
wrote:
> On Thu, Mar 17, 2011 at 12:14 PM, draeath <[email protected]> wrote:
>> On Mar 17, 2:20 pm, draeath wrote:
>>> Greetings all,
>>>
>>> (puppet 0.25.x)
>>>
>>> I'm trying to use puppetd on some SuSE clients. I had to find and put
>>> the zypper provider into the system, as it was absent. I'll show the
>>> contents of this file below.
>>>
>>> The issue that I'm running into is this:
>>> err: //syslog/Package[syslogd]: Failed to retrieve current state of
>>> resource: Provider zypper is not functional on this platform
>>> debug: facter value 'sles' for 'operatingsystem' not in required list
>>> 'suse,sles,sled,opensuse'
>>>
>>> This makes no sense to me at all. sles is quite clearly in that list.
>>>
>>> Here's the code from 
>>> zypper.rb:https://github.com/mmrobins/puppet/blob/bug%2Fmaster%2F3802-zypper/li...
>>>
>>> Note this:
>>> confine    :operatingsystem => [:suse, :sles, :sled, :opensuse]
>>>
>>> I have no idea if this is correct or not, as I know near zero about
>>> ruby.
>>>
>>> What's up with this?
>>
>> As a workaround I'm simply doing an if $operatingsystem == "SuSE"
>> check, and if it exists, it's putting a modified copy of the file down
>> that doesn't have that confine statement. This seems to work, but it
>> feels ugly to do so.
>
>
> Do you know if SuSE always reported as "SuSE" or whether it was "suse"
> in the past?
>
> This could be a consequence of us moving away from automatically
> downcasing fact values. I'm not sure where we should do this, whether
> it's in the confine for this provider, all confines, or in Facter
> itself.
>

To be honest, I have no idea. I'm a new user to puppet, and have not
touched SuSE in a long time prior to this project.
I do find it interesting that the debug shows it as 'sles' - but in
the manifests, it is read as 'SuSE'. Rather, at least the code we are
using is checking for and acting on SuSE (and it works).

We are using "0.25.5" - which version did downcasing of fact values
take stop taking place?

(apologies for just now replying directly to you Nigel - I'm not used
to using google groups, I'm used to using NNTP clients :) )

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to