I'm trying to use a puppet provider which requires a ruby gem.
It's being run on Debian stable (wheezy), but I get the following error:
err: Could not run Puppet configuration client: no such file to load -- zabbixapi
The problem seems to be that puppet is requiring ruby1.8 specifically. However, the version of rubygems installed is for ruby1.9.1. Therefore all the gems which get installed end up in
/var/lib/gems/1.9.1/gems/, which presumably version 1.8 of ruby doesn't look in.
What's the neatest way of having puppet code being able to require gems? I'm not really fussed which version of ruby ends up being used, provided it's consistent between rubygems and puppet.