<commit_before># Bootstrap CentOS VMs for training

## Usage:
- Clone this repo to anywhere
- Download full CentOS DVD iso
- Run ./scripts/setup-bootstrap.sh
    - It will create `~/Sites/ks`
        - It will copy centos kickstart file into `~/Sites/ks`
        - It will copy PE tarball into `~/Sites/ks`
        - It will clone four git repos into `~/Sites/ks`
    - It will create `~/Sites/dvd`
        - It will prompt for the location of the DVD image (Protip: drag 'n drop the .iso to the terminal instead of typing the path)
        - It will mount the DVD image at `~/Sites/dvd`
  - It will enable php on your local apache for kickstart (prompts for password for sudo)
- Enable web sharing in System Preferences if it is not already enabled
- Create a blank VM with 4GB disk and 256MB ram named "Puppet Training"
- Boot a blank VM with `~/Sites/dvd/images/boot.iso`
- At `boot:` prompt, enter `linux ks=http://192.168.XXX.1/~username/ks/centos.php`
- Wait 30 minutes (depends on bandwidth for `yum update` et al)
- Remove the `boot.iso` from the VMs cdrom
- Shutdown the vm

## Packaging the VM:
- Quit VMWare
- Remove the `.lck` and `.log` files from the VM directory
- Uh, `<insert directions from Puppetlabs sites here>`

## Kickstart Tasks:
- Modify root user password (for debug-login purposes)
- Install `epel` rpm, then `git`
- Clone `/usr/src/puppet` `/usr/src/facter` `/usr/src/mcollective` `/usr/src/puppetlabs-training-bootstrap`
- Kick off a puppet run on `/usr/src/puppetlabs-training-bootstrap/manifests/site.pp`
- Shutdown VM

## Puppet Tasks (by module):
### bootstrap
- Set up root password, `.bashrc`
- Set up Yumrepo for `puppetlabs` disabled
- Disable `epel`, `base`, and `updates` Yumrepos
- Set up `host` entries (optional)
- Start `sshd`

### localrepo
- Create local repo
- Add local `yumrepo` instance enabled

### pebase
- Copy in:
 - PE tarball from the [direct link](http://pm.puppetlabs.com/puppet-enterprise/1.1/puppet-enterprise-1.1-centos-5-x86_64.tar)
 - master and dev answer files (via `source =>`)
- Set up `/etc` directories for PE
<commit_msg>And clear up the modules readme<commit_after># Bootstrap CentOS VMs for training

## Usage:
- Clone this repo to anywhere
- Download full CentOS DVD iso
- Run ./scripts/setup-bootstrap.sh
    - It will create `~/Sites/ks`
        - It will copy centos kickstart file into `~/Sites/ks`
        - It will copy PE tarball into `~/Sites/ks`
        - It will clone four git repos into `~/Sites/ks`
    - It will create `~/Sites/dvd`
        - It will prompt for the location of the DVD image (Protip: drag 'n drop the .iso to the terminal instead of typing the path)
        - It will mount the DVD image at `~/Sites/dvd`
  - It will enable php on your local apache for kickstart (prompts for password for sudo)
- Enable web sharing in System Preferences if it is not already enabled
- Create a blank VM with 4GB disk and 256MB ram named "Puppet Training"
- Boot a blank VM with `~/Sites/dvd/images/boot.iso`
- At `boot:` prompt, enter `linux ks=http://192.168.XXX.1/~username/ks/centos.php`
- Wait 30 minutes (depends on bandwidth for `yum update` et al)
- Remove the `boot.iso` from the VMs cdrom
- Shutdown the vm

## Packaging the VM:
- Quit VMWare
- Remove the `.lck` and `.log` files from the VM directory
- Uh, `<insert directions from Puppetlabs sites here>`

## Kickstart Tasks:
- Modify root user password (for debug-login purposes)
- Install `epel` rpm, then `git`
- Clone `/usr/src/puppet` `/usr/src/facter` `/usr/src/mcollective` `/usr/src/puppetlabs-training-bootstrap`
- Kick off a puppet run on `/usr/src/puppetlabs-training-bootstrap/manifests/site.pp`
- Shutdown VM

## Puppet Tasks (by module):
### bootstrap
- Set up root password, `.bashrc`
- Set up Yumrepo for `puppetlabs` disabled
- Disable `epel`, `base`, and `updates` Yumrepos
- Set up `host` entries (optional)
- Start `sshd`

### localrepo
- Create local repo
- Add local `yumrepo` instance enabled

### pebase
- Copy in master and dev answer files (via `source =>`)
- Create symlink at `/root/puppet-enterprise`
- Set up `/etc` directories for PE
- At some point in the future: (currently in kickstart)
    - Grab PE tarball from the [direct link](http://pm.puppetlabs.com/puppet-enterprise/1.1/puppet-enterprise-1.1-centos-5-x86_64.tar)

{'fraction_non_alphanumeric': 0.11570631970260223, 'fraction_numerical': 0.010223048327137546, 'mean_word_length': 3.352881698685541, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5782211', 'n_tokens_mistral': 1511, 'n_tokens_neox': 1428, 'n_words': 549}