-
-
Save glallen01/7ed6c5ff7bce13b1abc184a488d45baf to your computer and use it in GitHub Desktop.
Install puppet via gem on smartos
This file contains 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
#!/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