kscherer/puppet — comment on commit 91aea02492256c717fa598cd691c9118fccfc042
File:  line 0
By mikeknox:

On 1/12/11 3:47 AM, Konrad Scherer wrote:
> I updated the pull request [1] to get the version number through sh. Please test that it works on OpenSuSE 10.2. Thanks!
>
> https://github.com/puppetlabs/puppet/pull/232
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/kscherer/puppet/commit/91aea02492256c717fa598cd691c9118fccfc042#commitcomment-758249
Konrad,
A white space or return code was causing grief on the check for zypper
0.6.13 so I changed it from == to =~.

After that I got ...
debug: Puppet::Type::Package::ProviderZypper: Executing '/bin/rpm -q
nagios-nrpe --nosignature --nodigest --qf %{NAME}
%|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}
'
debug: Package[nagios-nrpe](provider=zypper): Ensuring => present
debug: Puppet::Type::Package::ProviderZypper: Executing '/bin/sh -c
/usr/bin/zypper --version;echo -n'
err: /Stage[main]/Nagios::Client/Package[nagios-nrpe]/ensure: change
from absent to present failed: Could not set 'present on ensure: type
mismatch: String given at
/etc/puppet/test/modules/site/nagios/manifests/client.pp:11

--
Mike