Skip to content

Instantly share code, notes, and snippets.

@glallen01
Forked from jim80net/puppet_gem_installer.sh
Last active July 2, 2016 02:30
Show Gist options
  • Save glallen01/7ed6c5ff7bce13b1abc184a488d45baf to your computer and use it in GitHub Desktop.
Save glallen01/7ed6c5ff7bce13b1abc184a488d45baf 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
#
pkgin -y in ruby21 openssl
gem install puppet
# gem install deep_merge
sudo puppet resource group puppet ensure=present
sudo puppet resource user puppet ensure=present gid=puppet shell='/bin/false'
mkdir -p /etc/puppet/
cat <<EOF > /etc/puppet/puppet.conf
EOF
cat <<EOF > /etc/puppet/hiera.yaml
EOF
cd /opt/local/lib/svc/method
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
svccfg import puppetmasterd.xml
svcadm enable puppetd
svcadm enable puppetmasterd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment