The command “puppetserver gem list” does not list “ruby-shadow” How do I get a list of agent side gems, please ? ______________________________________________________________________________________________
Daniel E. White daniel.e.wh...@nasa.gov<mailto:daniel.e.wh...@nasa.gov> NASCOM Linux Engineer NASA Goddard Space Flight Center Science Applications International Corporation (SAIC) Office: (301) 286-6919 Mobile: (240) 513-5290 From: Puppet-Users Mailing List <puppet-users@googlegroups.com> on behalf of Martin Alfke <tux...@gmail.com> Reply-To: Puppet-Users Mailing List <puppet-users@googlegroups.com> Date: Monday, March 21, 2022 at 07:01 To: Puppet-Users Mailing List <puppet-users@googlegroups.com> Subject: Re: [EXTERNAL] [Puppet Users] Re: Ruby gem-ruby-shadow RPM on RHEL 8 ? 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 <puppet-users@googlegroups.com<mailto:puppet-users@googlegroups.com>> wrote: Ny use case is https://puppet.com/docs/puppet/7/types/user.html#user-provider-useradd<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpuppet.com%2Fdocs%2Fpuppet%2F7%2Ftypes%2Fuser.html%23user-provider-useradd&data=04%7C01%7Cdaniel.e.white%40nasa.gov%7C3b51cdbd8bfd49f562ff08da0b2a2869%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637834572936795645%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=eVdyEE%2F1opgdrhum5imNXQf9tz0t9eUM0GhhBQUXre8%3D&reserved=0> From: Puppet-Users Mailing List <puppet-users@googlegroups.com<mailto:puppet-users@googlegroups.com>> on behalf of Corey Osman <co...@logicminds.biz<mailto:co...@logicminds.biz>> Reply-To: Puppet-Users Mailing List <puppet-users@googlegroups.com<mailto:puppet-users@googlegroups.com>> Date: Friday, March 18, 2022 at 18:20 To: Puppet-Users Mailing List <puppet-users@googlegroups.com<mailto:puppet-users@googlegroups.com>> 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://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapalmblad%2Fruby-shadow&data=04%7C01%7Cdaniel.e.white%40nasa.gov%7C3b51cdbd8bfd49f562ff08da0b2a2869%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637834572936795645%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=S4jgFLmQStnJPixr%2FDFmEWlI7pfOHFmenAWOY9JdtbI%3D&reserved=0> https://stackoverflow.com/questions/3667918/how-do-you-precompile-the-native-extensions-for-a-ruby-gem-for-linux<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F3667918%2Fhow-do-you-precompile-the-native-extensions-for-a-ruby-gem-for-linux&data=04%7C01%7Cdaniel.e.white%40nasa.gov%7C3b51cdbd8bfd49f562ff08da0b2a2869%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637834572936795645%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=rTKWVeLPrpeOoGCjfy6GzE4OwtIoKe3g1YTI%2FhPL0fA%3D&reserved=0> https://github.com/rake-compiler/rake-compiler<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Frake-compiler%2Frake-compiler&data=04%7C01%7Cdaniel.e.white%40nasa.gov%7C3b51cdbd8bfd49f562ff08da0b2a2869%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637834572936795645%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=Fg5TwUf8iiWT0w5rzZFmb9znQxAVEF6%2BWN%2FXIPMb5hU%3D&reserved=0> 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<mailto: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<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%7C3b51cdbd8bfd49f562ff08da0b2a2869%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637834572936795645%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=jUakEWLUklaKfDcC5RkdUWVrbAktE%2FJ3bUVMjiFNKUo%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 puppet-users+unsubscr...@googlegroups.com<mailto:puppet-users+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CDB50CAC-F784-47F0-83D2-9B1816A66704%40nasa.gov<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpuppet-users%2FCDB50CAC-F784-47F0-83D2-9B1816A66704%2540nasa.gov%3Futm_medium%3Demail%26utm_source%3Dfooter&data=04%7C01%7Cdaniel.e.white%40nasa.gov%7C3b51cdbd8bfd49f562ff08da0b2a2869%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637834572936795645%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=E5xszt6jyNixiIzR5lT2J9zEcRg4l9D65QcWhUGeLV8%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 puppet-users+unsubscr...@googlegroups.com<mailto:puppet-users+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5D2F4A70-650F-4097-B050-5C4D0ACC89C2%40gmail.com<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fpuppet-users%2F5D2F4A70-650F-4097-B050-5C4D0ACC89C2%2540gmail.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=04%7C01%7Cdaniel.e.white%40nasa.gov%7C3b51cdbd8bfd49f562ff08da0b2a2869%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637834572936795645%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=gVGtvS4WsuMyeo50eoYZkjluW%2FzrHJn45DeWiKv6TSU%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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5008D030-2013-4282-8C38-19E97558331A%40nasa.gov.