<commit_before># Puppetizer

* This is experimental software, use at own risk!
* This software is not supported by Puppet, Inc.
* Puppetizer works by running commands over SSH to install and configure you master, in essence, it performs the same steps that a human operator would do, only faster
* In the case of installation problems, users should attempt to replicate error in a non-automated environment (eg, without this tool and by running the puppet installation scripts manually), as Puppet, Inc *do* provide support for the installer shipped within their installation media


## Development instructions

### Prerequisites
#### On the machine talking to the puppetmaster

* ruby

  ```shell
  yum install -y ruby ruby-devel rubygems git
  ```
_Note:  This will install the system ruby - you don't need to (nor should you...) install this software on a Puppet Enterprise Master_

* bundler

  ```shell
  gem install bundler
  ```

#### On the puppetmaster
* The `Development Tools` group package needs to be installed (some of the gems we use need it)

```shell
yum groupinstall 'Development Tools'
```

## Obtain Puppetizer
```shell
git clone https://github.com/GeoffWilliams/puppetizer<commit_msg>RHEL instructions<commit_after># Puppetizer

* This is experimental software, use at own risk!
* This software is not supported by Puppet, Inc.
* Puppetizer works by running commands over SSH to install and configure you master, in essence, it performs the same steps that a human operator would do, only faster
* In the case of installation problems, users should attempt to replicate error in a non-automated environment (eg, without this tool and by running the puppet installation scripts manually), as Puppet, Inc *do* provide support for the installer shipped within their installation media


## Development instructions

### Prerequisites
#### On the machine talking to the puppetmaster

##### ruby (on RHEL 7)

```shell
yum install -y ruby ruby-devel rubygems git
```
_Note:  This will install the system ruby - you don't need to (nor should you...) install this software on a Puppet Enterprise Master_

##### ruby (on RHEL 6)
RHEL 6 ships ruby 1.8.7 which is ancient.  You will need a newer ruby (2.0 works well) to use this tool.  Please contact your system administrator for details of how to install and configure ruby 2 through RHEL software collections.

##### bundler

```shell
gem install bundler
```

#### On the puppetmaster
* The `Development Tools` group package needs to be installed (some of the gems we use need it)

```shell
yum groupinstall 'Development Tools'
```

## Obtain Puppetizer
```shell
git clone https://github.com/GeoffWilliams/puppetizer
{'fraction_non_alphanumeric': 0.07273405445729206, 'fraction_numerical': 0.0033569563595673255, 'mean_word_length': 4.575883575883576, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '277995', 'n_tokens_mistral': 755, 'n_tokens_neox': 680, 'n_words': 377}