There are Ruby versions that have been specially tested with Puppet, whereas other versions have not. You might use the "ruby -version" command to determine the version of Ruby installed on the system. Puppet versions greater than Puppet 4 are independent of the Ruby version of the operating system since they have their own Ruby environment.  Now, you may install a puppet agent through any version of Ruby or without installing Ruby on any machine. Puppet Enterprise is independent of the Ruby version of the operating system due to the inclusion of its own Ruby environment. It is possible to install PE with a different version of Ruby or on systems without Ruby.