Skip to content

Instantly share code, notes, and snippets.

View sdorsett's full-sized avatar

Stan Dorsett sdorsett

View GitHub Profile
@sdorsett
sdorsett / gist:8e54e521f87b077ca5ce0961828f1556
Created January 17, 2017 15:20
install git and ruby from source on CentOS 7
# install the dependencies
yum groupinstall -y development tools
yum install -y curl-devel expat-devel gettext-devel nss openssl-devel perl-devel tar zlib-devel libxml2 libxml2-devel libxslt libxslt-devel
yum clean all
# install git 2.10.2
curl https://www.kernel.org/pub/software/scm/git/git-2.10.2.tar.gz | tar xz
cd git-2.10.2
make prefix=/usr/local
make prefix=/usr/local install
@sdorsett
sdorsett / gist:fa89f3373b64178a8e0462f90e9eaa4c
Last active January 17, 2017 15:18
puppetserver standup on CentOS 6
yum update -y
rpm -Uvh https://yum.puppetlabs.com/puppetlabs-release-pc1-el-6.noarch.rpm
yum install puppetserver
echo 'export PATH=/opt/puppetlabs/puppet/bin/:$PATH' >> /etc/profile
source /etc/profile
service puppetserver restart
chkconfig puppetserver on
/opt/puppetlabs/puppet/bin/gem install r10k
cd /etc/puppetlabs/puppet