Skip to content

Instantly share code, notes, and snippets.

@jim80net
Created September 23, 2013 03:14
Show Gist options
  • Save jim80net/6666153 to your computer and use it in GitHub Desktop.
Save jim80net/6666153 to your computer and use it in GitHub Desktop.
Install puppet via gem on smartos
#!/bin/bash
# For installation of puppet by gem for smartos
#
VERSION=3.3.0
PREFIX=/opt
mkdir -p /var/lib
cd ${PREFIX}
sudo gem install --no-ri --no-rdoc puppet
sudo puppet resource group puppet ensure=present
sudo puppet resource user puppet ensure=present gid=puppet shell='/bin/false'
touch /etc/puppet/puppet.conf
mkdir -p ${PREFIX}/local/lib/svc/method
cd ${PREFIX}/local/lib/svc/method
rm puppetd.xml
rm puppetmasterd.xml
rm svc-puppetd
rm svc-puppetmasterd
wget --no-check-certificate https://raw.github.com/RamTank/puppet/master/ext/solaris/smf/puppetd.xml
wget --no-check-certificate https://raw.github.com/RamTank/puppet/master/ext/solaris/smf/puppetmasterd.xml
wget --no-check-certificate https://raw.github.com/RamTank/puppet/master/ext/solaris/smf/svc-puppetd
wget --no-check-certificate https://raw.github.com/RamTank/puppet/master/ext/solaris/smf/svc-puppetmasterd
chmod +x svc-puppetd
chmod +x svc-puppetmasterd
svccfg import puppetd.xml
echo "#########"
echo "# run svcadm enable puppetd to complete"
echo "########"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment