Created
May 24, 2016 15:41
-
-
Save liamjbennett/6a3b16b1df3701e8eeae6ef0285745c6 to your computer and use it in GitHub Desktop.
puppet - centos/rhel - ruby2.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sed -i '/\/usr\/bin\/ruby/c\#!/usr/bin/env ruby' /usr/bin/puppet | |
# https://blog.al4.co.nz/2013/11/fixing-puppet-3-2-symlinks-on-osx-mavericks/ | |
ln -s /usr/lib/ruby/site_ruby/1.8/puppet /usr/local/lib/ruby/site_ruby/2.0.0/puppet | |
ln -s /usr/lib/ruby/site_ruby/1.8/puppet.rb /usr/local/lib/ruby/site_ruby/2.0.0/puppet.rb | |
ln -s /usr/lib/ruby/site_ruby/1.8/semver.rb /usr/local/lib/ruby/site_ruby/2.0.0/semver.rb | |
ln -s /usr/lib/ruby/site_ruby/1.8/facter /usr/local/lib/ruby/site_ruby/2.0.0/facter | |
ln -s /usr/lib/ruby/site_ruby/1.8/facter.rb /usr/local/lib/ruby/site_ruby/2.0.0/facter.rb | |
ln -s /usr/lib/ruby/site_ruby/1.8/hiera /usr/local/lib/ruby/site_ruby/2.0.0/hiera | |
ln -s /usr/lib/ruby/site_ruby/1.8/hiera.rb /usr/local/lib/ruby/site_ruby/2.0.0/hiera.rb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment