Ask Your Question

How to install puppet agent on photon by VMware?

asked 2015-04-23 03:15:00 -0500

Andreas gravatar image

VMware announced a new small container host called photon.

I would like to know how to install the puppet agent on photon? Hiera and facter works fine so far.

edit retag flag offensive close merge delete


Can you describe how you already installed hiera and facter into Photon?

GregLarkin gravatar imageGregLarkin ( 2015-04-24 12:42:15 -0500 )edit

3 answers

Sort by ยป oldest newest most voted

answered 2015-04-27 12:00:22 -0500

GregLarkin gravatar image

I had to build Ruby 1.9.3 manually from a downloaded tarball, and that required a bunch of additional packages to be installed on the system - gcc, binutils, linux-api-headers, make, etc. Once I got a functioning ruby executable, I ran into the same error that you reported.

In order for the OpenSSL Ruby extension to be built, you have to install the openssl-devel package before building Ruby. I ran tdnf install openssl-devel, rebuilt Ruby, and that got past the openssl error. After that, I still needed to install the which package, but once I did that, Puppet 3.7.5 installed correctly:

root [ ~/puppet-3.7.5 ]# puppet resource user root
user { 'root':
  ensure  => 'present',
  comment => 'root',
  gid     => '0',
  home    => '/root',
  shell   => '/bin/bash',
  uid     => '0',
root [ ~/puppet-3.7.5 ]# uname -a
Linux photon.localdomain 3.19.2 #1-photon SMP Wed Apr 15 22:37:11 UTC 2015 x86_64 GNU/Linux

Hope that helps!

edit flag offensive delete link more


Awesome, that works. Thank you very much!

timarenz gravatar imagetimarenz ( 2015-04-27 16:29:14 -0500 )edit

answered 2015-04-25 02:01:42 -0500

timarenz gravatar image

updated 2015-04-25 09:00:36 -0500

csharpsteen gravatar image

I used the tarball install method which works just fine for facter and hiera:

edit flag offensive delete link more


And what is the problem with installing the Puppet agent the same way? Can you supply some error messages or other information?

GregLarkin gravatar imageGregLarkin ( 2015-04-25 19:45:43 -0500 )edit

Here is the error I get when trying to install the puppet agent: sudo ruby install.rb ftools not found. Using FileUtils instead.. Could not load openssl; cannot install But the OpenSSL version 1.0.2a is installed.

timarenz gravatar imagetimarenz ( 2015-04-27 03:42:07 -0500 )edit

What version of ruby is installed on your machine?

GregLarkin gravatar imageGregLarkin ( 2015-04-27 11:39:00 -0500 )edit

answered 2015-10-20 13:01:23 -0500

jakerobinson gravatar image

Photon TP2 now has ruby-2.2 available:

tdnf install ruby


gem install puppet

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-04-23 03:14:19 -0500

Seen: 456 times

Last updated: Apr 27 '15