I believe http://alcy.github.io/2012/11/21/handling-gem-dependencies-in-custom-puppet-providers/ covers this case. It's old but should still apply.
On Mon, Jun 25, 2018 at 6:48 AM Eslam Abd El Naser < eslam.sa3dany2...@gmail.com> wrote: > Hi all, > I'm creating a custom resource type and trying to use Ruby '*net-ssh*' > gem, > * it works perfect, but most of the time puppet doesn't load the gem from > the first time > * I have to run puppet more twice in order for Puppet to load the gem > > Thanks in advance > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/4eb793bc-25fb-4d1b-a841-5b4855fd63d2%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/4eb793bc-25fb-4d1b-a841-5b4855fd63d2%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CABy1mMLT2mk1gs3TYOG8vR15jngzK9%2B8WexLy1gBC9vo3ZS1xw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.