Skip to content

Instantly share code, notes, and snippets.

@andrew-kurin
Created February 4, 2012 12:23
Show Gist options
  • Select an option

  • Save andrew-kurin/1737523 to your computer and use it in GitHub Desktop.

Select an option

Save andrew-kurin/1737523 to your computer and use it in GitHub Desktop.

Revisions

  1. andrew-kurin revised this gist Feb 9, 2012. 1 changed file with 0 additions and 3 deletions.
    3 changes: 0 additions & 3 deletions puppet-install.sh
    Original file line number Diff line number Diff line change
    @@ -13,8 +13,5 @@ rvm tools rvm-env ruby bash
    echo "source /etc/profile.d/rvm.sh" >> ~/.bashrc
    echo "rvm default" >> ~/.bashrc
    gem install puppet
    # create puppet user, otherwise 'puppet apply' throws an error
    groupadd puppet
    useradd -g puppet puppet
    # install libshadow if we want to manage user passwords as well
    gem install libshadow
  2. andrew-kurin revised this gist Feb 5, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion puppet-install.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    #!/bin/sh
    aptitude install -y build-essential openssl libreadline5 libreadline5-dev curl git-core zlib1g zlib1g-dev \
    aptitude install -y build-essential openssl libreadline-dev curl git-core zlib1g zlib1g-dev \
    libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf \
    libc6-dev ncurses-dev automake libtool bison subversion sudo
    # install rvm into /usr/local/rvm/
  3. andrew-kurin revised this gist Feb 5, 2012. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion puppet-install.sh
    Original file line number Diff line number Diff line change
    @@ -15,4 +15,6 @@ echo "rvm default" >> ~/.bashrc
    gem install puppet
    # create puppet user, otherwise 'puppet apply' throws an error
    groupadd puppet
    useradd -g puppet puppet
    useradd -g puppet puppet
    # install libshadow if we want to manage user passwords as well
    gem install libshadow
  4. andrew-kurin revised this gist Feb 5, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion puppet-install.sh
    Original file line number Diff line number Diff line change
    @@ -13,6 +13,6 @@ rvm tools rvm-env ruby bash
    echo "source /etc/profile.d/rvm.sh" >> ~/.bashrc
    echo "rvm default" >> ~/.bashrc
    gem install puppet
    # create puppet user, otherwise 'puppet apply' wouldn't work
    # create puppet user, otherwise 'puppet apply' throws an error
    groupadd puppet
    useradd -g puppet puppet
  5. andrew-kurin revised this gist Feb 5, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions puppet-install.sh
    Original file line number Diff line number Diff line change
    @@ -13,5 +13,6 @@ rvm tools rvm-env ruby bash
    echo "source /etc/profile.d/rvm.sh" >> ~/.bashrc
    echo "rvm default" >> ~/.bashrc
    gem install puppet
    # create puppet user, otherwise 'puppet apply' wouldn't work
    groupadd puppet
    useradd -g puppet puppet
  6. andrew-kurin revised this gist Feb 5, 2012. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion puppet-install.sh
    Original file line number Diff line number Diff line change
    @@ -12,4 +12,6 @@ rvm default
    rvm tools rvm-env ruby bash
    echo "source /etc/profile.d/rvm.sh" >> ~/.bashrc
    echo "rvm default" >> ~/.bashrc
    gem install puppet
    gem install puppet
    groupadd puppet
    useradd -g puppet puppet
  7. andrew-kurin revised this gist Feb 5, 2012. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions puppet-install.sh
    Original file line number Diff line number Diff line change
    @@ -12,5 +12,4 @@ rvm default
    rvm tools rvm-env ruby bash
    echo "source /etc/profile.d/rvm.sh" >> ~/.bashrc
    echo "rvm default" >> ~/.bashrc
    gem install puppet
    mkdir /etc/puppet
    gem install puppet
  8. andrew-kurin revised this gist Feb 5, 2012. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion puppet-install.sh
    Original file line number Diff line number Diff line change
    @@ -12,4 +12,5 @@ rvm default
    rvm tools rvm-env ruby bash
    echo "source /etc/profile.d/rvm.sh" >> ~/.bashrc
    echo "rvm default" >> ~/.bashrc
    gem install puppet
    gem install puppet
    mkdir /etc/puppet
  9. andrew-kurin revised this gist Feb 4, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion puppet-install.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    #!/bin/sh
    aptitude install -y build-essential openssl libreadline5 libreadline5-dev curl git-core zlib1g zlib1g-dev \
    libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf \
    libc6-dev ncurses-dev automake libtool bison subversion
    libc6-dev ncurses-dev automake libtool bison subversion sudo
    # install rvm into /usr/local/rvm/
    bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )

  10. andrew-kurin revised this gist Feb 4, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    sudo bash < <(curl https://raw.github.com/gist/1737523/puppet-install.sh )
  11. andrew-kurin revised this gist Feb 4, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion puppet-install.sh
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscr

    source /etc/profile.d/rvm.sh
    rvm install 1.8.7
    rvm alias create default `rvm list | grep ruby-1.8.7 | awk '{print $2}'`
    rvm alias create default `rvm list strings`
    rvm default
    rvm tools rvm-env ruby bash
    echo "source /etc/profile.d/rvm.sh" >> ~/.bashrc
  12. andrew-kurin revised this gist Feb 4, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion puppet-install.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    #!/bin/sh
    aptitude install build-essential openssl libreadline5 libreadline5-dev curl git-core zlib1g zlib1g-dev \
    aptitude install -y build-essential openssl libreadline5 libreadline5-dev curl git-core zlib1g zlib1g-dev \
    libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf \
    libc6-dev ncurses-dev automake libtool bison subversion
    # install rvm into /usr/local/rvm/
  13. andrew-kurin revised this gist Feb 4, 2012. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion puppet-install.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,10 @@
    #!/bin/sh
    aptitude install build-essential openssl libreadline5 libreadline5-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion
    aptitude install build-essential openssl libreadline5 libreadline5-dev curl git-core zlib1g zlib1g-dev \
    libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf \
    libc6-dev ncurses-dev automake libtool bison subversion
    # install rvm into /usr/local/rvm/
    bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )

    source /etc/profile.d/rvm.sh
    rvm install 1.8.7
    rvm alias create default `rvm list | grep ruby-1.8.7 | awk '{print $2}'`
  14. andrew-kurin created this gist Feb 4, 2012.
    11 changes: 11 additions & 0 deletions puppet-install.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    #!/bin/sh
    aptitude install build-essential openssl libreadline5 libreadline5-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion
    bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
    source /etc/profile.d/rvm.sh
    rvm install 1.8.7
    rvm alias create default `rvm list | grep ruby-1.8.7 | awk '{print $2}'`
    rvm default
    rvm tools rvm-env ruby bash
    echo "source /etc/profile.d/rvm.sh" >> ~/.bashrc
    echo "rvm default" >> ~/.bashrc
    gem install puppet