Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 1.44 KB

README.md

File metadata and controls

34 lines (28 loc) · 1.44 KB

# Tru Strap

What is this?

This is the MSM Public version of the 'tru-strap' script. Ref: https://github.com/jimfdavies/tru-strap

We have made this repo public so that we can download and start 'tru-strapping' without needing any credentials. We will pass required credentials as parameters into tru-strap in order for it to download/clone the required private repo(s).

How do I use it?

Integrate it with your favourite Virtualisation / Cloud platform eg. AWS User Data, RightScale RightScripts .... or use Vagrant with the handy provided Vagrantfile.

Vagrant

Quick Start

git clone [email protected]:MSMFG/tru-strap.git
cd tru-strap
cp ~/.ssh/myprivategithubkey myprivategithubkey.pem
export vm_mem=2048
export init_role=myrole
export init_env=myenv
export init_repoprivkeyfile=myprivategithubkey.pem
vagrant up

#### Environment Variables This Vagrantfile requires a few environment variables to be set.

Required
  • init_role The Puppet role of the server.
  • init_env The Puppet environment of the server.
  • init_repoprivkeyfile The filename (.pem extension) of your private GitHub key which should be copied into this directory.
Optional
  • init_repouser The owner of the github repo, defaults to MSMFG
  • init_reponame The name of the github repo, defaults to msm-provisioning
  • init_repobranch The name of the github branch, defaults to master