<commit_before># Server lockdown

## hardening.io

### login to virtualbox
```
$ vagrant up
$ vagrant ssh
vagrant@debian-jessie:~$ sudo -i -u demo
```

### pull hardening.io repository
```
demo@debian-jessie:~$ git clone https://github.com/hardening-io/hardening.git
demo@debian-jessie:~$ cd hardening/puppet
```

### load puppet modules using librarian
```
demo@debian-jessie:~$ librarian-puppet install
```

### run puppet apply with hardening steps for os and ssh 
```
demo@debian-jessie:~$ sudo puppet apply manifests/default.pp --modulepath=./modules
```<commit_msg>add documentation for Digital Ocean<commit_after># Server lockdown

## hardening.io

### with local virtualbox
```
$ vagrant up
$ vagrant ssh
vagrant@debian-jessie:~$ sudo -i -u demo
```

### pull hardening.io repository
```
demo@debian-jessie:~$ git clone https://github.com/hardening-io/hardening.git
demo@debian-jessie:~$ cd hardening/puppet
```

### load puppet modules using librarian
```
demo@debian-jessie:~$ librarian-puppet install
```

### run puppet apply with hardening steps for os and ssh 
```
demo@debian-jessie:~$ sudo puppet apply manifests/default.pp --modulepath=./modules
```

### with AWS/DO image
```
$ sudo -i -u demo
$ sudo gem install librarian-puppet
```

log out and back in

### pull hardening.io repository
```
$ git clone https://github.com/hardening-io/hardening.git
$ cd hardening/puppet
```

### load puppet modules using librarian
```
$ librarian-puppet install
```

### run puppet apply with hardening steps for os and ssh 
```
$ sudo puppet apply manifests/default.pp --modulepath=./modules
```
{'fraction_non_alphanumeric': 0.1524047470331043, 'fraction_numerical': 0.0, 'mean_word_length': 4.660777385159011, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5248539', 'n_tokens_mistral': 582, 'n_tokens_neox': 526, 'n_words': 150}