Hi John,
It's ok with unless => "/bin/bash -c '[ `/bin/rpm -q --qf %{VERSION}
facter` = 1.7.6 ]'"
thanks a lot
Le mercredi 14 janvier 2015 18:34:58 UTC+1, puppetstan a écrit :
>
> Hi,
>
> I would like to update the package facter on all of my servers. (I can not
> use INSTALL_OPTIONS becau
On Wednesday, January 14, 2015 at 11:34:58 AM UTC-6, puppetstan wrote:
>
> Hi,
>
> I would like to update the package facter on all of my servers. (I can not
> use INSTALL_OPTIONS because my puppet version is too old)
>
> I added a condition--> if the package facter is installed AND if facter
>
Le jeudi 15 janvier 2015 11:24:27 UTC+1, simon.o...@gmail.com a écrit :
>
>
> exec {'rpm updates':
>> command => '/bin/rpm -Uvh /tmp/facter-1.7.6-1.el6.x86_64.rpm',
>> onlyif => "/bin/rpm -q facter and ('/usr/bin/facter -v' !=
>> facter-1.7.6)",
>> }
>>
>>
> I think the p
> exec {'rpm updates':
> command => '/bin/rpm -Uvh /tmp/facter-1.7.6-1.el6.x86_64.rpm',
> onlyif => "/bin/rpm -q facter and ('/usr/bin/facter -v' !=
> facter-1.7.6)",
> }
>
>
I think the problem lies in the onlyif rule, have you tried running that
command on a machine? I
Hi
Yes it's a solution but for the moment i would like to use a condition ;)
but i have a problem with it ;)
Regards
Le mercredi 14 janvier 2015 18:34:58 UTC+1, puppetstan a écrit :
>
> Hi,
>
> I would like to update the package facter on all of my servers. (I can not
> use INSTALL_OPTIONS bec