Giter Club home page Giter Club logo

puppet-bootstrap's Introduction

Puppet Bootstrap Scripts

Usage

One Line Install/Configure/Start Puppet (test)

\curl -sSL https://git.io/vLD6L | sudo bash

One Line Install/Configure/Start Puppet (production)

\curl -sSL https://git.io/vLD6L | sudo bash -s '' production

One Line Install/Configure/Start Puppet (from puppet 4 collection)

\curl -sSL https://git.io/vLD6L | sudo bash -s '' locdev pc1

One Line Install/Configure/Start Puppet (Windows)

# PowerShell
iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/vanax'))
# cmd.exe
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/vanax'))"

Install/Configure/Start Puppet (Windows - production)

# PowerShell
$env:PuppetCollection = '5'
$env:PuppetVersion = '5.5.22'
$env:PuppetEnvironment = 'production'
iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/vanax'))

Install/Configure/Start Puppet (Windows - behind proxy)

# PowerShell
$env:PuppetCollection = '5'
$env:PuppetVersion = '5.5.22'
$env:PuppetEnvironment = 'test' # or production
$env:chocolateyProxyLocation = 'http://webproxy.mcs.miamioh.edu:80'
$WebClient = New-Object System.Net.WebClient
$WebClient.Proxy = New-Object System.Net.WebProxy($env:chocolateyProxyLocation,$true)
iex ($WebClient.DownloadString('https://git.io/vanax'))

Advanced Install/Configure/Start Puppet

curl -L https://github.com/MiamiOH/puppet-bootstrap/archive/master.tar.gz | tar xzv
sudo puppet-bootstrap-master/bootstrap.sh osx
rm -rf puppet-bootstrap-master

bootstrap options

./bootstrap.sh {redhat_5|redhat_6|redhat_7|redhat_8|debian|ubuntu|osx} [environment] [collection] [server]

force puppet run (after sign cert)

sudo puppet agent --test

set hostname on OS X (may need this)

sudo scutil --set LocalHostName <hostname>
sudo scutil --set ComputerName <hostname>
sudo scutil --set HostName <hostname>.miamioh.edu

Overview

This repository contains a multitude of single file scripts for setting up Puppet on a variety of machines.

Puppet is fantastic for managing infrastructure but there is a chicken/egg problem of getting Puppet initially installed on a machine so that Puppet can then take over for the remainder of system setup. This repository contains small scripts to bootstrap your system just enough so that Puppet can then take over.

Please contribute by forking and sending a pull request for your operating system.

The goal of this repository is to create a set of scripts that run on every version of every platform to set up Puppet.

Features of Each Script

  • Requires no parameters and runs without any human input, but can optionally take parameters to tune the packages the install and such. See each script for details on the parameters.
  • Uses only built-in software to install Puppet. These scripts have no external dependencies over the base install of their OS.
  • Installs Puppet agent and Facter.
  • Does not auto-start the Puppet agent service on the machine. Your bootstrap can choose to do this in addition to these scripts, if you'd like.

Using a Script

To use one of the scripts in this repository, you can either download the script directly from this repository as part of your machine setup process, or copy the contents of the script you need to your own location and use that. The latter is recommended since it then doesn't rely on GitHub uptime and is generally more secure.

If you do choose to download directly from this repository, make sure you link to a specific commit (and not master), so that the file contents don't change on you unexpectedly.

Contributing

Fork and pull request. Simple.

puppet-bootstrap's People

Contributors

antonlindstrom avatar braf avatar bryancpowell avatar danieldreier avatar ddrager avatar edestecd avatar emyl avatar farlerac avatar ferventcoder avatar filirom1 avatar finn avatar grahamgilbert avatar grubernaut avatar jmaslibre avatar kian avatar luoymu avatar mattr- avatar michaelkrieg avatar mitchellh avatar ptomulik avatar schrepfler avatar stagrlee avatar wickedshimmy avatar zakdoek avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

puppet-bootstrap's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.