I would like to know your use case of this gem since parsing /etc/shadow or /etc/passwd can be done with other tooling like augeas. Also, are you parsing the puppetserver's files or the agent? Additionally, any ruby code used to parse files would be installed on the agent and never the puppetserver. The puppetserver's job is to only compile the catalog.
To answer the original question you can pre-compile the gem and deliver/install to the destination. https://github.com/apalmblad/ruby-shadow https://stackoverflow.com/questions/3667918/how-do-you-precompile-the-native-extensions-for-a-ruby-gem-for-linux https://github.com/rake-compiler/rake-compiler Although I don't see a need to do this since there are other ways to solve actual issue. The epel package will not work since it would install files in the wrong location and since puppetserver runs on jruby it wouldn't work anyways. Reach out on the puppet community slack channels for more support. Corey NWOPS, LLC On Thursday, March 17, 2022 at 8:49:50 AM UTC-7 nasa_dan wrote: > Will the rubygem-ruby-shadow RPM from EPEL work with PE 2021.4 instead of > installing the gem ? > > > > The command “puppetserver gem install ruby-shadow” fails, telling me I > need to install development tools. > > I can do that for the test-lab instance, but not in production. > > > > Thanks. > -- 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/7cb87ec3-d539-4cb5-81aa-0088d9d2d74an%40googlegroups.com.