The goal of cg-init is to create a git-based project repo template. The cg-init flow is as follows:
1) A CG github admin clones this repo via the cg-init command
2) The initial developer edits the puppets site.pp and module init.pp files for the respective project
3) All onboarding members of the project change directory to setup/ and run the install.sh <arch> script to bootstrap their environment.
The following are prerequisites for using the install script: Vagrant, Virtualbox, Packer. The versions listed below were the most up-to-date as of November 6, 2013.
Installing Vagrant:
Virtualbox:
Packer:
- Download zip file 0.4.1 for amd64 mac *Note CG has only verified cg-init up to 0.4.1
- Unzip, rename folder to "packer", and move folder to /usr/local/bin
- Add /usr/local/bin/packer to $PATH
To boostrap environment run, change directory to setup/ and run the install.sh script passing the host architecture as an agrument:
$ ./install.sh mac
NOTE: When the installation reaches the point shown below, it may seem as if it is "hanging". It is not. It is normal at this stage for no additional output to appear for 10-20 minutes. It is still installing; do not try to kill the process.
==> virtualbox: Waiting for SSH to become available...