Shadow is part of the ruby installation inside the puppet agent. You can verify functionality:
/opt/puppetlabs/puppet/bin/irb irb(main):001:0> require 'shadow' => true irb(main):002:0> exit root@node01:~# If you receive the “true” output after you run require ’shadow’ all is set and you can directly start using the user resource type. No need to install anything. Hth, Martin > On 21. Mar 2022, at 11:23, 'White, Daniel E. (GSFC-770.0)[NICS]' via Puppet > Users <[email protected]> wrote: > > Ny use case is > https://puppet.com/docs/puppet/7/types/user.html#user-provider-useradd > <https://puppet.com/docs/puppet/7/types/user.html#user-provider-useradd> > > > From: Puppet-Users Mailing List <[email protected] > <mailto:[email protected]>> on behalf of Corey Osman > <[email protected] <mailto:[email protected]>> > Reply-To: Puppet-Users Mailing List <[email protected] > <mailto:[email protected]>> > Date: Friday, March 18, 2022 at 18:20 > To: Puppet-Users Mailing List <[email protected] > <mailto:[email protected]>> > Subject: [EXTERNAL] [Puppet Users] Re: Ruby gem-ruby-shadow RPM on RHEL 8 ? > > > 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://github.com/apalmblad/ruby-shadow> > https://stackoverflow.com/questions/3667918/how-do-you-precompile-the-native-extensions-for-a-ruby-gem-for-linux > > <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 > <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 [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/7cb87ec3-d539-4cb5-81aa-0088d9d2d74an%40googlegroups.com > > <https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpuppet-users%2F7cb87ec3-d539-4cb5-81aa-0088d9d2d74an%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=04%7C01%7Cdaniel.e.white%40nasa.gov%7C7fe04a59806d45f4d21108da092d822a%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637832388310251771%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=wq%2F3Fexlo2UKOfJJzhWOhWsj0gLYQxpYiW%2FOTTAr1O4%3D&reserved=0>. > > > -- > 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] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/CDB50CAC-F784-47F0-83D2-9B1816A66704%40nasa.gov > > <https://groups.google.com/d/msgid/puppet-users/CDB50CAC-F784-47F0-83D2-9B1816A66704%40nasa.gov?utm_medium=email&utm_source=footer>. -- 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/5D2F4A70-650F-4097-B050-5C4D0ACC89C2%40gmail.com.
