Puppet 3.1.1 using Ruby 1.9.3 on Amazon Linux

UPDATE: Amazon Linux is now on Ruby 2.x, so below is DEPRECATED for new Amazon Linux images. But parts may be useful.
  1. yum -y remove ruby
  2. yum -y install ruby19
  3. gem install --no-rdoc --no-ri puppet --version=3.1.1 
  4.  /usr/local/bin/puppet -V
    1. add /usr/local/bin to $PATH of users that need it
  5.  vi /usr/local/share/gems1.9/gems/facter-1.7.5/lib/facter/ec2.rb
    1. change line 28 to:
      1. if (Facter::Util::EC2.can_connect?)
    2. Reference: http://projects.puppetlabs.com/issues/7559
    3. existing line 28 is much longer
 If you manage user passwords with Puppet
  1. yum -y install ruby19-devel
  2. yum -y groupinstall "Developer Tools"
  3. gem install --no-rdoc --no-ri ruby-shadow

Comments

Popular posts from this blog

Openvpn and unbound combined break dig command

Stress Linux system: stress-ng

Google Nexus 4: permanent back panel glass repair for less than a penny