Re: [Puppet Users] Custom ruby gem continuously updates

27 views
Skip to first unread message

Peter Brown

unread,
Oct 1, 2012, 8:42:39 PM10/1/12
to puppet...@googlegroups.com
Does it actually install?
I find if package resources try to install on each run it means they
don't get installed correctly.

On 28 September 2012 13:22, jmadtech <jdi...@jmadtechnologies.com> wrote:
> Hey all,
>
> I'm not sure if there's a real issue or if I'm doing something incorrectly.
>
> I have a custom compiled gem that I'm installing via:
>
> package { "sapnwrfc-0.24":
> ensure => 'installed',
> provider => 'gem',
> source => "/export/admin_scripts/sapnwrfc-0.24",
> }
>
> On first run, it installs correctly. A 'gem list' shows it as:
>
> sapnwrfc (0.24 x86_64-linux)
>
> However, every subsequent checkin with the master results in:
>
> Thu Sep 27 20:07:34 -0700 2012 Puppet (notice): Starting Puppet client
> version 2.7.19
> Thu Sep 27 20:07:49 -0700 2012
> /Stage[main]/my_app/Package[sapnwrfc-0.24]/ensure (notice): created
> Thu Sep 27 20:07:53 -0700 2012 Puppet (notice): Finished catalog run in
> 12.90 seconds
>
> I've tried changing the ensure from 'installed' to '0.24', '0.24
> x86_64-linux', etc. to no avail... it keeps registering a change.
>
> what am I doing wrong?
>
> Thanks in advance!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/I_o9G1NySfUJ.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.

jmadtech

unread,
Oct 1, 2012, 8:51:18 PM10/1/12
to puppet...@googlegroups.com
The gem is there and installed.  I didn't install it by hand, so it did get installed by puppet at some point.  I'm assuming it's because the gem source file is local so it has no way to verify the file version versus the installed version.

Peter Brown

unread,
Oct 2, 2012, 2:03:31 AM10/2/12
to puppet...@googlegroups.com
Considering the source you have seems to have a version in it already
have you tried it without the version number in the name?
as in
package { "sapnwrfc":
ensure => 'installed',
provider => 'gem',
source => "/export/admin_scripts/sapnwrfc-0.24",
}

> https://groups.google.com/d/msg/puppet-users/-/2-aZE0n23ewJ.

jmadtech

unread,
Oct 5, 2012, 3:03:02 AM10/5/12
to puppet...@googlegroups.com
Pure genius!  That did it Pete.

Thanks so much!

Peter Brown

unread,
Oct 5, 2012, 3:55:36 AM10/5/12
to puppet...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages