Skip to content

Bootstrap TSE demo environment on (mostly) pristine Mac OS X box.

Notifications You must be signed in to change notification settings

kaipak/puppet-tse-demostack

Repository files navigation

seteam-demostack

Bootstrap TSE demo environment on (mostly) clean Mac OS X box. Ruby script (autodemo.rb) will pull down necessary bits and packages to build base environment needed to bootstrap rest of TSE demo stack (Puppet client binaries and requisite code).

Forked code from boxen project is included as Puppet types and providers but are not currently being used. This will likely be removed from future versions.

Installation

Just clone this git repo somewhere onto your OS X box :).

Usage

You're probably most interested in just running the thing, so here's how to do it.

If you're running VirtualBox currently, power off your VMs first before running this. It's best if you remove old versions of VirtualBox as well since package management on OS X is a little lacking and Puppet wouldn't "know" about previous installs. Same goes for Vagrant. Both apps come with uninstall scripts that you'll want to run. Note, this bootstrap package contains a script located at tools/clean.sh that will basically undo everything this package does. Please be careful with this as there is an option to remove a user account and not much error checking. The script will call the Vagrant and VirtualBox uninstall scripts as a part of its process.

Run the Ruby script as root as provide a username: sudo ./bootstrap_demostack.rb --username <user>

Changes to versions, Vagrant plugins and other params should be done in provided params.pp which is located in $modulesdir/seteam_demostack/manifests/params.pp

Usage: autodemo.rb -u|--username username

                   Note: default behavior is to install all-in-one agent if it isn't already
                   installed.  Also will leave older agent installs alone.  If you want to
                   update ONLY all-in-one agent, please choose '--update'.

    -u, --username USERNAME          username is mandatory.
        --update                     Update Puppet all-in-one agent. Leave older installs alone.
        --nuclear                    Completely wipe out earlier Puppet installs and install latest agent.
    -h, --help

You need superuser privileges for it to work or the script will bail. You also need to provide a username in order to set up the environment correctly (mostly because Vagrant plugins reside in a directory in a user's homedir). If you don't have Puppet-agent already installed, it will do that for you, otherwise, it'll leave whatever version you're currently running alone. You can force an uninstall and update to most recent version with --update switch. --nuclear forcibly removes ALL previous versions of Puppet, Hiera, Facter, and Puppet-agent before installing the most recent Puppet-agent.

Current Install List

  • puppet-agent 4.2.0
  • VirtualBox 5.0 build 101573
  • Vagrant 1.7.4
    • oscar
    • vagrant-multiprovider-snap
    • vagrant-reload
    • vagrant-hosts

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

Puppet code, types, and providers forked from following repos:

About

Bootstrap TSE demo environment on (mostly) pristine Mac OS X box.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published