HI Bryan


> I'm updating a module that will require a ruby gem (e.g. xml-simple) for 
> one of the custom providers. How does Puppet make sure that the gem is 
> available and installed when the module is installed? Does a *puppet 
> module install* also install any dependent gems? How does it know which 
> gems are needed to install? To where does Puppet install gems?
>

*puppet module install *does not install dependent rubygems. Either the 
module manifests should care about or you should care about.



 

>
> I saw/found this PR (https://github.com/puppetlabs/puppet/pull/4220 
> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fpuppetlabs%2Fpuppet%2Fpull%2F4220&sa=D&sntz=1&usg=AFQjCNE6ipPOV2gsPxXENLHu7M9wXlk1ig>)
>  
>  which shows a module which requires a gem; but when i try this i still get 
> the error:
>
> Could not autoload puppet/provider/aem_crx_package/ruby: cannot load such 
> file -- xmlsmiple
>


this error i've encountered at times when different environments had the 
same module with different types/providers. 

there is official docs about that: 
https://docs.puppet.com/puppet/latest/environment_isolation.html

With puppet 4.8 you can workaround/solve this problem with running 

puppet generate types --environment $name 

for every environment.

- Thomas

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/e294c209-d491-4672-b506-b1874b75ee1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to