Skip to content

Instantly share code, notes, and snippets.

@quidome
Forked from jim80net/puppet_gem_installer.sh
Last active August 29, 2015 14:18
Show Gist options
  • Save quidome/28bf8e588277837190a3 to your computer and use it in GitHub Desktop.
Save quidome/28bf8e588277837190a3 to your computer and use it in GitHub Desktop.
bootstrap puppet agent on smartos
#!/bin/bash
# For installation of puppet by gem for smartos
#
RUBY=ruby193
PUPPETVERSION=3.7.4
# install ruby
pkgin -y in ${RUBY}
mkdir -p /var/lib
gem install --no-ri --no-rdoc --version=${PUPPETVERSION} puppet
puppet resource group puppet ensure=present
puppet resource user puppet ensure=present gid=puppet shell='/bin/false'
puppet agent --test --server ${PUPPETMASTER}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment