Skip to content

Instantly share code, notes, and snippets.

@danhart
Last active May 22, 2017 13:39

Revisions

  1. danhart revised this gist May 22, 2017. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions puppet_4_serverless.sh
    Original file line number Diff line number Diff line change
    @@ -2,10 +2,10 @@
    # https://github.com/puppetlabs/r10k/blob/master/doc/dynamic-environments/quickstart.mkd#configure-puppet-code-repository

    wget http://apt.puppetlabs.com/puppetlabs-release-pc1-xenial.deb
    dpkg -i puppetlabs-release-pc1-xenial.deb
    apt-get update && apt-get install puppet-agent
    cd /etc/puppetlabs/code/environments/production && rm -rf *
    sudo dpkg -i puppetlabs-release-pc1-xenial.deb
    sudo apt-get update && sudo apt-get install puppet-agent
    cd /etc/puppetlabs/code/environments/production && sudo rm -rf *
    git clone <your-repo> .
    /opt/puppetlabs/puppet/bin/gem install r10k",
    /opt/puppetlabs/puppet/bin/r10k puppetfile install
    puppet apply -t site.pp
    sudo /opt/puppetlabs/puppet/bin/gem install r10k",
    sudo /opt/puppetlabs/puppet/bin/r10k puppetfile install
    sudo puppet apply -t site.pp
  2. danhart created this gist May 22, 2017.
    11 changes: 11 additions & 0 deletions puppet_4_serverless.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    # See here for how to create your Puppet 4 repo
    # https://github.com/puppetlabs/r10k/blob/master/doc/dynamic-environments/quickstart.mkd#configure-puppet-code-repository

    wget http://apt.puppetlabs.com/puppetlabs-release-pc1-xenial.deb
    dpkg -i puppetlabs-release-pc1-xenial.deb
    apt-get update && apt-get install puppet-agent
    cd /etc/puppetlabs/code/environments/production && rm -rf *
    git clone <your-repo> .
    /opt/puppetlabs/puppet/bin/gem install r10k",
    /opt/puppetlabs/puppet/bin/r10k puppetfile install
    puppet apply -t site.pp